From: Matthias Fischer Date: Sat, 28 Feb 2015 10:52:33 +0000 (+0100) Subject: guardian.cgi: Use variable $pid instead of array element. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=922ddf0ef64d977422653d4346f57a9f71c6ea4e;p=people%2Fms%2Fipfire-2.x.git guardian.cgi: Use variable $pid instead of array element. This will prevent from a lot of perl suggestions in the apache error log. Reference #10748. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/guardian.cgi b/html/cgi-bin/guardian.cgi index 45bc510d26..ea02e76dff 100644 --- a/html/cgi-bin/guardian.cgi +++ b/html/cgi-bin/guardian.cgi @@ -84,7 +84,7 @@ my $errormessage = ''; # Check if guardian is running and grab some stats. &daemonstats(); -my $pid = @pid[0]; +my $pid = $pid[0]; ## Perform input checks and save settings. # @@ -312,7 +312,7 @@ sub showMainBox() { # Get current status of guardian. &daemonstats(); - $pid = @pid[0]; + $pid = $pid[0]; # Display some useful information related to guardian, if daemon is running. if ( ($memory != 0) && ($pid > 0) ){ @@ -332,7 +332,7 @@ sub showMainBox() { - @pid[0] + $pid $memory KB