From 54a704f19dcc839a9f6a9b316d111708d4d45312 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 28 Jul 2017 07:29:16 +0200 Subject: [PATCH] Fix linter warnings Signed-off-by: Knut Ahlers --- spark.go | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/spark.go b/spark.go index 07b5b14..46ef37c 100644 --- a/spark.go +++ b/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, ) }