mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
Merge pull request #529 from kaifengz/CA-173358
CA-173358: Change the unit of vbd-io-throughput data sources to MiB
This commit is contained in:
commit
ec2356570b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user