]> granicus.if.org Git - procps-ng/commit
top: enabled arbitrarily large numbers in 'scale' guys
authorJim Warner <james.warner@comcast.net>
Mon, 8 Mar 2021 12:08:21 +0000 (06:08 -0600)
committerCraig Small <csmall@dropbear.xyz>
Thu, 11 Mar 2021 10:21:23 +0000 (21:21 +1100)
commit62928cf4614314dfb99adba79240098f49487c6f
tree3c9e3752f02fe3d46f04b314c89a9400a710f9bf
parent9ddbc82000b88841f4c7a2b1da4ae3edb0f16f3c
top: enabled arbitrarily large numbers in 'scale' guys

While experimenting with a new feature, wherein select
fields display the total upon request, the capacity of
the 'num' passed to some 'scale' guys became an issue.

So this commit will, with the compiler's help, put the
responsibility for converting the integer into a float
within the calling code (instead of the called logic).

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c
top/top.h