Subject: | bug in Sys::Statistics::Processes for newly discovered processes |
Date: | Wed, 2 Sep 2009 14:17:17 +0200 |
To: | bug-Sys-Statistics-Linux [...] rt.cpan.org |
From: | Christian BOITEL <christian.boitel [...] gmail.com> |
Hi,
When a process is created, information about that new process isn't made
available: I would except only delta computed information (cpu usage...)
about the process would be missing.
Bug is tracked in Sys/Statistics/Linux/Processes.pm
--- Sys/Statistics/Linux/Processes.pm.original 2009-08-20
08:43:28.000000000 +0200
+++ Sys/Statistics/Linux/Processes.pm 2009-09-02 14:10:43.000000000 +0200
@@ -396,7 +396,7 @@
# if the start time is not equal then it seems to be a new
process
for my $k (qw(minflt cminflt mayflt cmayflt utime stime cutime
cstime sttime)) {
$istat->{$pid}->{$k} = $lpid->{$k};
- delete $lstat->{$pid};
+ delete $lstat->{$pid}->{$k};
}
}
}