summaryrefslogtreecommitdiffstats
path: root/perl-install/commands.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-12-15 16:16:47 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-12-15 16:16:47 +0000
commitabf5c6d408b08edc0c49ec42a26137385c0dce2f (patch)
treedd090c3d95a34f72652de6e46a08357c1c263ff4 /perl-install/commands.pm
parentcfec8dbee1943bbb7c17abf0aaf73fc244d2d2bd (diff)
downloaddrakx-abf5c6d408b08edc0c49ec42a26137385c0dce2f.tar
drakx-abf5c6d408b08edc0c49ec42a26137385c0dce2f.tar.gz
drakx-abf5c6d408b08edc0c49ec42a26137385c0dce2f.tar.bz2
drakx-abf5c6d408b08edc0c49ec42a26137385c0dce2f.tar.xz
drakx-abf5c6d408b08edc0c49ec42a26137385c0dce2f.zip
fix bug (detected by perl_checker!)
Diffstat (limited to 'perl-install/commands.pm')
-rw-r--r--perl-install/commands.pm2
1 files changed, 1 insertions, 1 deletions
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;
}