3.0: fixed a bug that could generate unexpected peaks in 'cs' and 'forks' values, and one cosmetic change

This commit is contained in:
Jordi Sanfeliu 2012-11-22 09:20:48 +01:00
parent 5854e16366
commit 643f98114f
1 changed files with 4 additions and 6 deletions

View File

@ -68,9 +68,7 @@ sub kern_init {
$config->{kern_hist} = ();
push(@{$config->{func_update}}, $package);
if($debug) {
logger("$myself: Ok");
}
logger("$myself: Ok") if($debug);
}
sub kern_update {
@ -87,12 +85,12 @@ sub kern_update {
my $sirq;
my $steal;
my $guest;
my $cs = 0;
my $cs = "U";
my $dentry;
my $file;
my $inode;
my $forks = 0;
my $vforks = 0;
my $forks = "U";
my $vforks = "U";
my $val03 = 0;
my $val04 = 0;
my $val05 = 0;