From 19d6abcce57be35c3bd43ebf45e37d69776f081e Mon Sep 17 00:00:00 2001 From: Matthias Fischer Date: Sat, 28 Feb 2015 11:52:33 +0100 Subject: [PATCH] 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. --- html/cgi-bin/guardian.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/cgi-bin/guardian.cgi b/html/cgi-bin/guardian.cgi index 433d99c960..e4c2be4e1c 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 -- 2.39.2