Skip to content

Commit

Permalink
* added jar file name for stats
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercake10 committed Dec 18, 2017
1 parent 24a2df9 commit 4c5c486
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion SpaceIOMetrics/src/de/Linus122/SpaceIOMetrics/Metrics.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@

import com.google.gson.Gson;


/*
* SpaceIOMetrics main class by Linus122
* version: 0.03
* version: 0.04
*
*/
public class Metrics {
Expand Down Expand Up @@ -95,6 +96,13 @@ private String collectData() {
data.osArch = System.getProperty("os.arch");
data.osVersion = System.getProperty("os.version");

String executableName = new java.io.File(Metrics.class.getProtectionDomain()
.getCodeSource()
.getLocation()
.getPath())
.getName();
data.executableName = executableName;

data.diskSize = new File("/").getTotalSpace();

if(data.osName.equals("Linux")){
Expand Down Expand Up @@ -166,6 +174,7 @@ class Data {
int coreCnt;
String javaRuntime;

String executableName;
boolean onlineMode;

String osName;
Expand Down

0 comments on commit 4c5c486

Please sign in to comment.