diff options
author | Robert J. Macomber <robertm@dilithium> | 2014-06-27 18:22:30 -0700 |
---|---|---|
committer | Robert J. Macomber <robertm@dilithium> | 2014-06-27 18:22:30 -0700 |
commit | a0397ad2ad0f9382bccf4e10ecf1435dab9cf01c (patch) | |
tree | 527577492e0c7e392ec7eb8154294fb970ca5b58 /samples/status.sh | |
parent | cfb6773cd3761ae7df279bc2387edb6547aa15b9 (diff) | |
download | xmobar-a0397ad2ad0f9382bccf4e10ecf1435dab9cf01c.tar.gz xmobar-a0397ad2ad0f9382bccf4e10ecf1435dab9cf01c.tar.bz2 |
Fix for CPU monitor on long-running systems
After running long enough, the numbers in /proc/stat get big enough
that they will not fit in a Float without loss of precision, which
leads to erratic results such as reporting "NaN%" CPU usage.
This commit simply keeps the numbers integral until producing the final
percentage result.
Diffstat (limited to 'samples/status.sh')
0 files changed, 0 insertions, 0 deletions