Build precise queries to find exactly what you need
Press ESC to close
@rril
Favorites0
Views
Projects0
290,291c290,295 {swapused}/$mem->{swaptotal})*100); {swapcached}/$mem->{swaptotal})*100); --- > my $swapused = 0; > my $swapcached = 0; > if($mem->{swaptotal}>0) { > $swapused = sprintf("%.2f", ($mem->{swapused}/$mem->{swaptotal})*100); > $swapcached = sprintf("%.2f", ($mem->{swapcached}/$mem->{swaptotal})*100); > } 294c298 =$mem_crit)||($swapused>=$swap_crit)) { --- > if(($memused>=$mem_crit)||(($swapused>=$swap_crit) && ($swapused>0))) { 297c301 =$mem_warn)||($swapused>=$swap_warn)) { --- > elsif (($memused>=$mem_warn)||(($swapused>=$swap_warn) && ($swapused>0))) { Sorry, I do not write English well.
Reviewed 12 years ago