cmd/swarm/swarm-smoke: remove wrong metrics (#18970)
(cherry picked from commit c5c9cef5c0
)
This commit is contained in:
committed by
Rafael Matias
parent
7038b5734c
commit
355d55bd34
@ -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)
|
||||
|
Reference in New Issue
Block a user