mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
Merge pull request #97 from mjarkk/fix-94
Added rounding to timing (fixes #94)
This commit is contained in:
commit
cd95ffce49
1 changed files with 1 additions and 1 deletions
|
|
@ -256,7 +256,7 @@ func (c *Container) PlotGraph(spec config.GraphConfig, width int) (string, error
|
||||||
asciigraph.Width(width),
|
asciigraph.Width(width),
|
||||||
asciigraph.Min(min),
|
asciigraph.Min(min),
|
||||||
asciigraph.Max(max),
|
asciigraph.Max(max),
|
||||||
asciigraph.Caption(fmt.Sprintf("%s: %0.2f (%v)", spec.Caption, data[len(data)-1], time.Since(c.StatHistory[0].RecordedAt))),
|
asciigraph.Caption(fmt.Sprintf("%s: %0.2f (%v)", spec.Caption, data[len(data)-1], time.Since(c.StatHistory[0].RecordedAt).Round(time.Second))),
|
||||||
), nil
|
), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue