diff --git a/lib/apache.pm b/lib/apache.pm index 8dfbb1c..a103b74 100644 --- a/lib/apache.pm +++ b/lib/apache.pm @@ -386,11 +386,11 @@ sub apache_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@riglim); if(trim($rigid[1]) eq 1) { push(@riglim, "--upper-limit=" . trim($limit[1])); diff --git a/lib/disk.pm b/lib/disk.pm index dac137f..e83b735 100644 --- a/lib/disk.pm +++ b/lib/disk.pm @@ -411,11 +411,11 @@ sub disk_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@tmp); undef(@tmpz); for($n = 0; $n < 8; $n += 2) { diff --git a/lib/fs.pm b/lib/fs.pm index d1a2b5a..f236f16 100644 --- a/lib/fs.pm +++ b/lib/fs.pm @@ -714,11 +714,11 @@ sub fs_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@riglim); if(trim($rigid[1]) eq 1) { push(@riglim, "--upper-limit=" . trim($limit[1])); diff --git a/lib/hptemp.pm b/lib/hptemp.pm index b5114d0..0ffaf49 100644 --- a/lib/hptemp.pm +++ b/lib/hptemp.pm @@ -413,7 +413,6 @@ sub hptemp_cgi { print(" \n"); print(" \n"); } - if(scalar(my @hptemp1 = split(',', $hptemp->{list}->{1}))) { undef(@tmp); undef(@tmpz); diff --git a/lib/kern.pm b/lib/kern.pm index 7b0bdb8..5de544e 100644 --- a/lib/kern.pm +++ b/lib/kern.pm @@ -713,11 +713,11 @@ sub kern_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@tmp); undef(@tmpz); push(@tmp, "AREA:cs#44AAEE:Context switches"); diff --git a/lib/lighttpd.pm b/lib/lighttpd.pm index 4986712..e7a75e1 100644 --- a/lib/lighttpd.pm +++ b/lib/lighttpd.pm @@ -391,11 +391,11 @@ sub lighttpd_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@riglim); if(trim($rigid[1]) eq 1) { push(@riglim, "--upper-limit=" . trim($limit[1])); diff --git a/lib/lmsens.pm b/lib/lmsens.pm index fbc797e..40f98dc 100644 --- a/lib/lmsens.pm +++ b/lib/lmsens.pm @@ -751,11 +751,11 @@ sub lmsens_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@tmp); undef(@tmpz); push(@tmp, ("LINE2:mb0#FFA500:MB 0\\g", "GPRINT:mb0:LAST:\\:%3.0lf ")); diff --git a/lib/mail.pm b/lib/mail.pm index cf2c1a3..729253d 100644 --- a/lib/mail.pm +++ b/lib/mail.pm @@ -878,11 +878,11 @@ sub mail_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@riglim); if(trim($rigid[2]) eq 1) { push(@riglim, "--upper-limit=" . trim($limit[2])); diff --git a/lib/mysql.pm b/lib/mysql.pm index 1d60d8d..0b7ee9e 100644 --- a/lib/mysql.pm +++ b/lib/mysql.pm @@ -816,11 +816,11 @@ sub mysql_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@riglim); if(trim($rigid[2]) eq 1) { push(@riglim, "--upper-limit=" . trim($limit[2])); diff --git a/lib/net.pm b/lib/net.pm index 4491b51..654795c 100644 --- a/lib/net.pm +++ b/lib/net.pm @@ -465,11 +465,11 @@ sub net_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@riglim); if(trim($rigid[1]) eq 1) { push(@riglim, "--upper-limit=" . trim($limit[1])); diff --git a/lib/nfsc.pm b/lib/nfsc.pm index 0d2f4be..6744727 100644 --- a/lib/nfsc.pm +++ b/lib/nfsc.pm @@ -508,11 +508,11 @@ sub nfsc_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@riglim); if(trim($rigid[2]) eq 1) { push(@riglim, "--upper-limit=" . trim($limit[2])); diff --git a/lib/nfss.pm b/lib/nfss.pm index f2dc893..0f6dd37 100644 --- a/lib/nfss.pm +++ b/lib/nfss.pm @@ -673,11 +673,11 @@ sub nfss_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@riglim); if(trim($rigid[3]) eq 1) { push(@riglim, "--upper-limit=" . trim($limit[3])); diff --git a/lib/nginx.pm b/lib/nginx.pm index 23ded39..8ffab36 100644 --- a/lib/nginx.pm +++ b/lib/nginx.pm @@ -407,11 +407,11 @@ sub nginx_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@riglim); if(trim($rigid[1]) eq 1) { push(@riglim, "--upper-limit=" . trim($limit[1])); diff --git a/lib/ntp.pm b/lib/ntp.pm index 8e31356..05c086f 100644 --- a/lib/ntp.pm +++ b/lib/ntp.pm @@ -408,11 +408,11 @@ sub ntp_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@riglim); if(trim($rigid[1]) eq 1) { push(@riglim, "--upper-limit=" . trim($limit[1])); diff --git a/lib/nvidia.pm b/lib/nvidia.pm index 887513e..ac8f575 100644 --- a/lib/nvidia.pm +++ b/lib/nvidia.pm @@ -403,11 +403,11 @@ sub nvidia_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@tmp); undef(@tmpz); push(@tmp, "LINE2:gpu0#FFA500:Card 0\\g"); diff --git a/lib/serv.pm b/lib/serv.pm index d80d765..499037e 100644 --- a/lib/serv.pm +++ b/lib/serv.pm @@ -744,11 +744,11 @@ sub serv_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@riglim); if(trim($rigid[1]) eq 1) { push(@riglim, "--upper-limit=" . trim($limit[1])); diff --git a/lib/squid.pm b/lib/squid.pm index 2fba393..54ee7e2 100644 --- a/lib/squid.pm +++ b/lib/squid.pm @@ -931,11 +931,11 @@ sub squid_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@riglim); if(trim($rigid[3]) eq 1) { push(@riglim, "--upper-limit=" . trim($limit[3])); diff --git a/lib/system.pm b/lib/system.pm index 8192691..a061a6c 100644 --- a/lib/system.pm +++ b/lib/system.pm @@ -511,11 +511,11 @@ sub system_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@riglim); if(trim($rigid[1]) eq 1) { push(@riglim, "--upper-limit=" . trim($limit[1])); diff --git a/lib/user.pm b/lib/user.pm index 319ba60..25b1771 100644 --- a/lib/user.pm +++ b/lib/user.pm @@ -297,11 +297,11 @@ sub user_cgi { print(" \n"); } } + if($title) { print(" \n"); print(" \n"); } - undef(@riglim); if(trim($rigid[1]) eq 1) { push(@riglim, "--upper-limit=" . trim($limit[1]));