From abf5c6d408b08edc0c49ec42a26137385c0dce2f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 15 Dec 2003 16:16:47 +0000 Subject: fix bug (detected by perl_checker!) --- perl-install/commands.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/commands.pm') diff --git a/perl-install/commands.pm b/perl-install/commands.pm index bf61ac05d..de2f23136 100644 --- a/perl-install/commands.pm +++ b/perl-install/commands.pm @@ -244,7 +244,7 @@ $pid, $rss, $cpu, $cmd my @l = split(' ', cat_("/proc/$pid/stat")); $cpu = sprintf "%2.1f", max(0, min(99, ($l[13] + $l[14]) * 100 / $hertz / ($uptime - $l[21] / $hertz))); $rss = (split ' ', cat_("/proc/$pid/stat"))[23] * $page; - (($cmd) = cat_("/proc/$pid/cmdline")) =~ s/\0/ /g; + ($cmd = cat_("/proc/$pid/cmdline")) =~ s/\0/ /g; $cmd ||= (split ' ', (cat_("/proc/$pid/stat"))[0])[1]; write PS; } -- cgit v1.2.1