mirror of
https://github.com/Luzifer/continuous-spark.git
synced 2024-12-20 09:41:19 +00:00
Fix linter warnings
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
164e4b60f5
commit
54a704f19d
1 changed files with 8 additions and 9 deletions
17
spark.go
17
spark.go
|
@ -14,11 +14,10 @@ const (
|
|||
protocolVersion uint16 = 0x00 // Protocol Version
|
||||
blockSize int64 = 200 // size (KB) of each block of data copied to/from remote
|
||||
throughputTestLength uint = 10 // length of time to conduct each throughput test
|
||||
maxPingTestLength uint = 10 // maximum time for ping test to complete
|
||||
numPings int = 30 // number of pings to attempt
|
||||
|
||||
KBPS = 1024.0
|
||||
MBPS = 1024.0 * KBPS
|
||||
kbps = 1024.0
|
||||
mbps = 1024.0 * kbps
|
||||
)
|
||||
|
||||
type testResult struct {
|
||||
|
@ -51,12 +50,12 @@ func (t testResult) String() string {
|
|||
t.Ping.Max,
|
||||
t.Ping.Avg,
|
||||
t.Ping.Dev,
|
||||
t.Receive.Min/MBPS,
|
||||
t.Receive.Max/MBPS,
|
||||
t.Receive.Avg/MBPS,
|
||||
t.Send.Min/MBPS,
|
||||
t.Send.Max/MBPS,
|
||||
t.Send.Avg/MBPS,
|
||||
t.Receive.Min/mbps,
|
||||
t.Receive.Max/mbps,
|
||||
t.Receive.Avg/mbps,
|
||||
t.Send.Min/mbps,
|
||||
t.Send.Max/mbps,
|
||||
t.Send.Avg/mbps,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue