From 1a497ecf5280652b797149f30115419682d22ee0 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Fri, 9 Aug 2024 13:33:58 +0800 Subject: [PATCH] Update disktest.go --- disk/disktest.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/disk/disktest.go b/disk/disktest.go index a5e84b7..77954ee 100644 --- a/disk/disktest.go +++ b/disk/disktest.go @@ -300,14 +300,14 @@ func execFioTest(path, devicename, fioSize string) (string, error) { if strings.Contains(l, "rand_rw_"+BS) { tpList := strings.Split(l, ";") // IOPS - DISK_IOPS_R := tpList[8] - DISK_IOPS_W := tpList[49] + DISK_IOPS_R := tpList[7] + DISK_IOPS_W := tpList[48] DISK_IOPS_R_INT, _ := strconv.Atoi(DISK_IOPS_R) DISK_IOPS_W_INT, _ := strconv.Atoi(DISK_IOPS_W) DISK_IOPS := DISK_IOPS_R_INT + DISK_IOPS_W_INT // Speed - DISK_TEST_R := tpList[7] - DISK_TEST_W := tpList[48] + DISK_TEST_R := tpList[6] + DISK_TEST_W := tpList[47] DISK_TEST_R_INT, _ := strconv.ParseFloat(DISK_TEST_R, 64) DISK_TEST_W_INT, _ := strconv.ParseFloat(DISK_TEST_W, 64) DISK_TEST := DISK_TEST_R_INT + DISK_TEST_W_INT