diff options
author | Anton Evangelatov <anton.evangelatov@gmail.com> | 2019-01-30 21:02:15 +0800 |
---|---|---|
committer | Rafael Matias <rafael@skyle.net> | 2019-02-19 20:05:37 +0800 |
commit | 355d55bd349e7ca6360f626279858c31cfc59898 (patch) | |
tree | 734fd197b36a10ee5cc4fb9eb90d2b80ae8990ab /cmd/swarm/swarm-smoke/upload_speed.go | |
parent | 7038b5734c9068fb67851b9a21d771ae93aef1fd (diff) | |
download | go-tangerine-355d55bd349e7ca6360f626279858c31cfc59898.tar go-tangerine-355d55bd349e7ca6360f626279858c31cfc59898.tar.gz go-tangerine-355d55bd349e7ca6360f626279858c31cfc59898.tar.bz2 go-tangerine-355d55bd349e7ca6360f626279858c31cfc59898.tar.lz go-tangerine-355d55bd349e7ca6360f626279858c31cfc59898.tar.xz go-tangerine-355d55bd349e7ca6360f626279858c31cfc59898.tar.zst go-tangerine-355d55bd349e7ca6360f626279858c31cfc59898.zip |
cmd/swarm/swarm-smoke: remove wrong metrics (#18970)
(cherry picked from commit c5c9cef5c0baf1652b6642858ad2426794823699)
Diffstat (limited to 'cmd/swarm/swarm-smoke/upload_speed.go')
-rw-r--r-- | cmd/swarm/swarm-smoke/upload_speed.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cmd/swarm/swarm-smoke/upload_speed.go b/cmd/swarm/swarm-smoke/upload_speed.go index 943c93240..1123f2449 100644 --- a/cmd/swarm/swarm-smoke/upload_speed.go +++ b/cmd/swarm/swarm-smoke/upload_speed.go @@ -30,13 +30,6 @@ import ( ) func uploadSpeed(c *cli.Context) error { - defer func(now time.Time) { - totalTime := time.Since(now) - - log.Info("total time", "time", totalTime, "kb", filesize) - metrics.GetOrRegisterCounter("upload-speed.total-time", nil).Inc(int64(totalTime)) - }(time.Now()) - endpoint := generateEndpoint(scheme, cluster, appName, from) seed := int(time.Now().UnixNano() / 1e6) log.Info("uploading to "+endpoint, "seed", seed) |