mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
*: drop use of humanize.Time() in favour of time.Duration.String()
humanize.Time() drops precision resulting in some events reporting they took "now" time to complete. Using time.Duration.String() results in accurate duration being reported. Fixes #13905
This commit is contained in:
@@ -184,7 +184,7 @@ func (ms *maintenanceServer) Snapshot(sr *pb.SnapshotRequest, srv pb.Maintenance
|
||||
ms.lg.Info("successfully sent database snapshot to client",
|
||||
zap.Int64("total-bytes", total),
|
||||
zap.String("size", size),
|
||||
zap.String("took", humanize.Time(start)),
|
||||
zap.String("took", time.Since(start).String()),
|
||||
zap.String("storage-version", storageVersion),
|
||||
)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user