Skip to content

Commit

Permalink
Update disktest.go
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS authored Aug 9, 2024
1 parent 521d41e commit 1a497ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions disk/disktest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a497ec

Please sign in to comment.