indent fix!

master
Alexey Kostin 2019-02-27 22:57:47 +03:00
parent 9f5ccbda10
commit 7fdeb2af6d
1 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ func bench(cephconn *Cephconnection, osddevice Device, buffs *[][]byte, startbuf
case k < 9000:
mseconds = yellow(fmt.Sprintf("[%.1f-%.1f)", float64(k/1000), float64(1+k/1000)))
case k < 10000:
mseconds = yellow(fmt.Sprintf("[%.1f-%v)", float64(k/1000), 1+k/1000))
mseconds = color.YellowString(fmt.Sprintf("[%.1f-%v)", float64(k/1000), 1+k/1000))
case k < 100000:
mseconds = red(fmt.Sprintf("[%3v-%3v)", k/1000, 10+k/1000))
case k < 1000000:
@ -140,7 +140,7 @@ func bench(cephconn *Cephconnection, osddevice Device, buffs *[][]byte, startbuf
blocks.WriteString("#")
}
megabyteswritten := (float64(latencygrade[k]) * float64(params.blocksize)) / 1024 / 1024
buffer.WriteString(fmt.Sprintf("%-9v ms: [%-50v] Count: %-5v Total written: %6.3f MB\n",
buffer.WriteString(fmt.Sprintf("%-20v ms: [%-50v] Count: %-5v Total written: %6.3f MB\n",
mseconds, blocks.String(), latencygrade[k], megabyteswritten))
}
result <- buffer.String()