We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5dfa84 commit 56e8660Copy full SHA for 56e8660
plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java
@@ -548,7 +548,7 @@ protected void updateLocalPoolIops(LibvirtStoragePool pool) {
548
Script.getExecutableAbsolutePath("bash"),
549
"-c",
550
String.format(
551
- "%s -z %s 1 2 | %s 'NR==7 {read=$4; write=$5; total=read+write; print total}'",
+ "%s -z %s 1 2 | %s 'NR==7 {print $2}'",
552
Script.getExecutableAbsolutePath("iostat"),
553
result,
554
Script.getExecutableAbsolutePath("awk")
0 commit comments