Skip to content

Commit 56e8660

Browse files
committed
fix local storage usediops value
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent e5dfa84 commit 56e8660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ protected void updateLocalPoolIops(LibvirtStoragePool pool) {
548548
Script.getExecutableAbsolutePath("bash"),
549549
"-c",
550550
String.format(
551-
"%s -z %s 1 2 | %s 'NR==7 {read=$4; write=$5; total=read+write; print total}'",
551+
"%s -z %s 1 2 | %s 'NR==7 {print $2}'",
552552
Script.getExecutableAbsolutePath("iostat"),
553553
result,
554554
Script.getExecutableAbsolutePath("awk")

0 commit comments

Comments
 (0)