mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 14:06:44 +08:00
accounting: show human readable elapsed time when longer than a day - fixes #6748
This commit is contained in:
parent
25535e5eac
commit
04f7e52803
|
@ -453,7 +453,7 @@ func (s *StatsInfo) String() string {
|
|||
_, _ = fmt.Fprintf(buf, "Transferred: %10d / %d, %s\n",
|
||||
s.transfers, ts.totalTransfers, percent(s.transfers, ts.totalTransfers))
|
||||
}
|
||||
_, _ = fmt.Fprintf(buf, "Elapsed time: %10ss\n", strings.TrimRight(elapsedTime.Truncate(time.Minute).String(), "0s")+fmt.Sprintf("%.1f", elapsedTimeSecondsOnly.Seconds()))
|
||||
_, _ = fmt.Fprintf(buf, "Elapsed time: %10ss\n", strings.TrimRight(fs.Duration(elapsedTime.Truncate(time.Minute)).ReadableString(), "0s")+fmt.Sprintf("%.1f", elapsedTimeSecondsOnly.Seconds()))
|
||||
}
|
||||
|
||||
// checking and transferring have their own locking so unlock
|
||||
|
|
Loading…
Reference in New Issue
Block a user