From 70a7a62790359c3fa92f4254d25a6dc5b5aa8631 Mon Sep 17 00:00:00 2001 From: Kaifeng Zhu Date: Thu, 2 Jul 2015 09:58:03 +0800 Subject: [PATCH] CA-173358: Change the unit of vbd-io-throughput data sources to MiB The unit of VBD IO throughput is changed to MiB after merged all VBD related data sources from xcp-rrdd to rrdp-iostat, Signed-off-by: Kaifeng Zhu --- XenAdmin/Controls/CustomDataGraph/DataSet.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/XenAdmin/Controls/CustomDataGraph/DataSet.cs b/XenAdmin/Controls/CustomDataGraph/DataSet.cs index 62f83003e..8dbbd2531 100644 --- a/XenAdmin/Controls/CustomDataGraph/DataSet.cs +++ b/XenAdmin/Controls/CustomDataGraph/DataSet.cs @@ -160,6 +160,11 @@ namespace XenAdmin.Controls.CustomDataGraph { if (settype.Contains("iops")) dataSet.CustomYRange = new DataRange(1, 0, 1, Unit.CountsPerSecond, RangeScaleMode.Auto); + else if (settype.Contains("io_throughput")) + { + dataSet.CustomYRange = new DataRange(1, 0, 1, Unit.BytesPerSecond, RangeScaleMode.Auto); + dataSet.MultiplyingFactor = (int)Util.BINARY_MEGA; //xapi units are in mebibytes/sec + } else if (settype.EndsWith("iowait")) { dataSet.CustomYRange = new DataRange(100, 0, 10, Unit.Percentage, RangeScaleMode.Auto);