summaryrefslogtreecommitdiffhomepage
path: root/xmobar.config-sample
diff options
context:
space:
mode:
authorRobert J. Macomber <robertm@dilithium>2014-06-27 18:22:30 -0700
committerRobert J. Macomber <robertm@dilithium>2014-06-27 18:22:30 -0700
commita0397ad2ad0f9382bccf4e10ecf1435dab9cf01c (patch)
tree527577492e0c7e392ec7eb8154294fb970ca5b58 /xmobar.config-sample
parentcfb6773cd3761ae7df279bc2387edb6547aa15b9 (diff)
downloadxmobar-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 'xmobar.config-sample')
0 files changed, 0 insertions, 0 deletions