diff --git a/.gitignore b/.gitignore index 0e13346..0839577 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ -# Ignore Gradle project-specific cache directory -.gradle .idea - -# Ignore Gradle build output directory +.settings +.classpath +.project +.gradle build +bin diff --git a/agent/src/main/java/org/sysmon/agent/beans/DiskBean.java b/agent/src/main/java/org/sysmon/agent/beans/DiskBean.java index 9973b68..c0f74bf 100644 --- a/agent/src/main/java/org/sysmon/agent/beans/DiskBean.java +++ b/agent/src/main/java/org/sysmon/agent/beans/DiskBean.java @@ -78,8 +78,10 @@ public class DiskBean implements MetricBean { continue; } + long timeSpendDoingIo = curStat.timeSpentOnIo - preStat.timeSpentOnIo; + // TODO: Calculate differences for wanted disk io stats - measurementList.add(new MetricMeasurement(curStat.getDevice(), 0)); + measurementList.add(new MetricMeasurement(curStat.getDevice() + "-iotime", timeSpendDoingIo)); }