cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From weiz...@apache.org
Subject git commit: updated refs/heads/master to ab6bf0b
Date Mon, 10 Jun 2013 22:09:11 GMT
Updated Branches:
  refs/heads/master 6de271c75 -> ab6bf0b20


fix disk I/O description mistake


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ab6bf0b2
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ab6bf0b2
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ab6bf0b2

Branch: refs/heads/master
Commit: ab6bf0b20975e96696e5541e050e97819e003177
Parents: 6de271c
Author: Wei Zhou <w.zhou@leaseweb.com>
Authored: Tue Jun 11 00:09:05 2013 +0200
Committer: Wei Zhou <w.zhou@leaseweb.com>
Committed: Tue Jun 11 00:09:05 2013 +0200

----------------------------------------------------------------------
 .../com/cloud/usage/parser/VmDiskUsageParser.java   | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ab6bf0b2/usage/src/com/cloud/usage/parser/VmDiskUsageParser.java
----------------------------------------------------------------------
diff --git a/usage/src/com/cloud/usage/parser/VmDiskUsageParser.java b/usage/src/com/cloud/usage/parser/VmDiskUsageParser.java
index 33ba2bb..84bdfd2 100644
--- a/usage/src/com/cloud/usage/parser/VmDiskUsageParser.java
+++ b/usage/src/com/cloud/usage/parser/VmDiskUsageParser.java
@@ -111,8 +111,8 @@ public static final Logger s_logger = Logger.getLogger(VmDiskUsageParser.class.g
                 Long vmId = null;
                 Long volumeId = null;
                 
-                // Create the usage record for bytes read
-                String usageDesc = "disk bytes read";
+                // Create the usage record for disk I/O read (io requests)
+                String usageDesc = "disk I/O read (io requests)";
                 if ((vmDiskInfo.getVmId() != 0) && (vmDiskInfo.getVolumeId() != 0)){
                     vmId = vmDiskInfo.getVmId();
                     volumeId = vmDiskInfo.getVolumeId();
@@ -122,8 +122,8 @@ public static final Logger s_logger = Logger.getLogger(VmDiskUsageParser.class.g
                         UsageTypes.VM_DISK_IO_READ, new Double(ioRead), vmId, null, null,
null, vmDiskInfo.getVolumeId(), startDate, endDate, "VirtualMachine");
                 usageRecords.add(usageRecord);
 
-                // Create the usage record for bytes write
-                usageDesc = "disk bytes write";
+                // Create the usage record for disk I/O write (io requests)
+                usageDesc = "disk I/O write (io requests)";
                 if ((vmDiskInfo.getVmId() != 0) && (vmDiskInfo.getVolumeId() != 0)){
                     usageDesc += " for Vm: " + vmId + " and Volume: " + volumeId;
                 }
@@ -131,8 +131,8 @@ public static final Logger s_logger = Logger.getLogger(VmDiskUsageParser.class.g
                         UsageTypes.VM_DISK_BYTES_WRITE, new Double(ioWrite), vmId, null,
null, null, vmDiskInfo.getVolumeId(), startDate, endDate, "VirtualMachine");
                 usageRecords.add(usageRecord);
                 
-                // Create the usage record for bytes read
-                usageDesc = "disk io requests read";
+                // Create the usage record for disk I/O read (bytes)
+                usageDesc = "disk I/O read (bytes)";
                 if ((vmDiskInfo.getVmId() != 0) && (vmDiskInfo.getVolumeId() != 0)){
                     usageDesc += " for Vm: " + vmId + " and Volume: " + volumeId;
                 }
@@ -140,8 +140,8 @@ public static final Logger s_logger = Logger.getLogger(VmDiskUsageParser.class.g
                         UsageTypes.VM_DISK_BYTES_READ, new Double(bytesRead), vmId, null,
null, null, vmDiskInfo.getVolumeId(), startDate, endDate, "VirtualMachine");
                 usageRecords.add(usageRecord);
 
-                // Create the usage record for bytes write
-                usageDesc = "disk io requests write";
+                // Create the usage record for disk I/O write (bytes)
+                usageDesc = "disk I/O write (bytes)";
                 if ((vmDiskInfo.getVmId() != 0) && (vmDiskInfo.getVolumeId() != 0)){
                     usageDesc += " for Vm: " + vmId + " and Volume: " + volumeId;
                 }


Mime
View raw message