Fix addon service pid/memory display if the addon name has numbers.
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 10 Feb 2011 18:49:23 +0000 (19:49 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 10 Feb 2011 18:49:23 +0000 (19:49 +0100)
config/rootfiles/core/47/filelists/files
html/cgi-bin/services.cgi

index 424ca86..b6efe09 100644 (file)
@@ -279,6 +279,7 @@ sub isrunningaddon{
 
        if ( $testcmd =~ /is\ running/ && $testcmd !~ /is\ not\ running/){
                $status = "<td align='center' bgcolor='${Header::colourgreen}'><font color='white'><b>$Lang::tr{'running'}</b></font></td>";
+               $testcmd =~ s/.* //gi;
                $testcmd =~ s/[a-z_]//gi;
                $testcmd =~ s/\[[0-1]\;[0-9]+//gi;
                $testcmd =~ s/[\(\)\.]//gi;