This commit is contained in:
2018-12-03 15:35:18 -05:00
parent ad5772fae9
commit 688dd5fc7a
12 changed files with 85 additions and 8 deletions

View File

@@ -41,8 +41,8 @@ close(MPSTAT);
$cpu_usage eq -1 and die 'Can\'t find CPU information';
# Print short_text, full_text
printf "%.2f%%\n", $cpu_usage;
printf "%.2f%%\n", $cpu_usage;
printf "%.0f%%\n", $cpu_usage;
printf "%.0f%%\n", $cpu_usage;
# Print color, if needed
if ($cpu_usage >= $t_crit) {