Skip to content

Commit

Permalink
Merge pull request snabbco#1120 from dpino/top-bad-arg-format
Browse files Browse the repository at this point in the history
Fix bad argument #2 to 'format'
  • Loading branch information
dpino authored Jun 22, 2018
2 parents 25a5e5d + e649e60 commit 34d9670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/program/top/top.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 34d9670

Please sign in to comment.