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/sliding_window.go | |
parent | 7038b5734c9068fb67851b9a21d771ae93aef1fd (diff) | |
download | dexon-355d55bd349e7ca6360f626279858c31cfc59898.tar dexon-355d55bd349e7ca6360f626279858c31cfc59898.tar.gz dexon-355d55bd349e7ca6360f626279858c31cfc59898.tar.bz2 dexon-355d55bd349e7ca6360f626279858c31cfc59898.tar.lz dexon-355d55bd349e7ca6360f626279858c31cfc59898.tar.xz dexon-355d55bd349e7ca6360f626279858c31cfc59898.tar.zst dexon-355d55bd349e7ca6360f626279858c31cfc59898.zip |
cmd/swarm/swarm-smoke: remove wrong metrics (#18970)
(cherry picked from commit c5c9cef5c0baf1652b6642858ad2426794823699)
Diffstat (limited to 'cmd/swarm/swarm-smoke/sliding_window.go')
-rw-r--r-- | cmd/swarm/swarm-smoke/sliding_window.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cmd/swarm/swarm-smoke/sliding_window.go b/cmd/swarm/swarm-smoke/sliding_window.go index 3dd404c50..3c4b1c79a 100644 --- a/cmd/swarm/swarm-smoke/sliding_window.go +++ b/cmd/swarm/swarm-smoke/sliding_window.go @@ -43,13 +43,6 @@ type uploadResult struct { } func slidingWindow(c *cli.Context) error { - defer func(now time.Time) { - totalTime := time.Since(now) - - log.Info("total time", "time", totalTime) - metrics.GetOrRegisterCounter("sliding-window.total-time", nil).Inc(int64(totalTime)) - }(time.Now()) - generateEndpoints(scheme, cluster, appName, from, to) hashes := []uploadResult{} //swarm hashes of the uploads nodes := to - from |