You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This script purports to check cpu state over a specified interval, but uses vmstat to check state, then assumes the last line gives an average. Suggest changing from vmstat to sar. To overcome the problem of processing float output in bash, can use bc to process.
This script purports to check cpu state over a specified interval, but uses vmstat to check state, then assumes the last line gives an average. Suggest changing from vmstat to sar. To overcome the problem of processing float output in bash, can use bc to process.
Linux avg cpu over interval:
Floating point comparison for bash/bc
Floating point comparison in use:
Requires packages
sysstat
andbc
to fully implementThe text was updated successfully, but these errors were encountered: