From e649e6049452bbb8e3da0efcfbae8014a243552f Mon Sep 17 00:00:00 2001 From: Diego Pino Garcia Date: Fri, 22 Jun 2018 12:35:08 +0000 Subject: [PATCH] Scale packet drops The formated string suggests the argument should be scaled as two values are expected. --- src/program/top/top.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/program/top/top.lua b/src/program/top/top.lua index 3bc8c9ab84..7b99f6f1a4 100644 --- a/src/program/top/top.lua +++ b/src/program/top/top.lua @@ -626,7 +626,7 @@ function compute_display_tree.interface(tree, prev, dt, t) lchars('%.3f %sPPS', scale(pps)), lchars('%.3f %sbps', scale(bps)), lchars('%.2f%%', bps/max*100), - drops > 0 and rchars('%.3f %sPPS dropped', drops) or nil) + drops > 0 and rchars('%.3f %sPPS dropped', scale(drops)) or nil) end local function show_pci(addr, pci, prev) local bps, tag = scale(tonumber(pci.speed and pci.speed.value) or 0)