nmeter: do not clamp down %Nc to minimum of 10 (think nmeter "%`nproc`c")
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 6 Aug 2019 14:56:00 +0000 (16:56 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 6 Aug 2019 14:59:50 +0000 (16:59 +0200)
commit85b380f6b21816b3392a987d35cfc79c25ec0ffd
tree21e217596ee78343bc9c354353c99d420147fc72
parentb81f80565854d59c0209a6dbaa2022caa6f0d468
nmeter: do not clamp down %Nc to minimum of 10 (think nmeter "%`nproc`c")

Also, go for unsigned divisions.

function                                             old     new   delta
init_cpu                                              61      73     +12
collect_cpu                                          444     422     -22
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 12/-22)            Total: -10 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/nmeter.c