Skip to content

Commit 32e96ab

Browse files
committed
Merge remote-tracking branch 'origin/4.9' into 4.10
2 parents c663a76 + ca415e7 commit 32e96ab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3224,6 +3224,9 @@ public VmStatsEntry getVmStat(final Connect conn, final String vmName) throws Li
32243224
long bytes_rd = 0;
32253225
long bytes_wr = 0;
32263226
for (final DiskDef disk : disks) {
3227+
if (disk.getDeviceType() == DeviceType.CDROM || disk.getDeviceType() == DeviceType.FLOPPY) {
3228+
continue;
3229+
}
32273230
final DomainBlockStats blockStats = dm.blockStats(disk.getDiskLabel());
32283231
io_rd += blockStats.rd_req;
32293232
io_wr += blockStats.wr_req;

0 commit comments

Comments
 (0)