Fold the leftover formatters into the SI ones and stop reallocating the draw scratch
This commit is contained in:
@@ -344,7 +344,7 @@ func (d *display) render(v view, elapsed time.Duration, cable string) error {
|
||||
d.stats(d.gridB, x, w, d.sinceYs[0], []statCell{
|
||||
{scaleTime(elapsed), "elapsed", uiFg},
|
||||
{scaleCount(v.rxFrames), "packets", uiFg},
|
||||
{scaleCount(v.rxGot), "bytes", uiFg},
|
||||
{scaleCount(v.rxBytes), "bytes", uiFg},
|
||||
{cable, "m", uiFg},
|
||||
})
|
||||
d.errCounts(x, w, d.sinceYs[1], v.since)
|
||||
|
||||
Reference in New Issue
Block a user