Lines Matching refs:newstat
395 # generate_delta($stat, $newstat) takes two stat references, returned from
397 # same basic info as stat and newstat, but with the timestamps as deltas
403 my ($stat, $newstat) = @_;
412 $delta{maxsnap} = $newstat->{snaptime};
421 $delta{missing} = (keys(%$stat) != keys(%$newstat));
427 # scan through every cpu in %newstat and compare against %stat
429 while (my ($cpu, $newcpst) = each %$newstat) {
432 # If %stat is missing a cpu from %newstat, then it was just
1237 my $newstat;
1289 # 1. Sleep, update the kstats, and save the new stats in $newstat.
1299 $newstat = getstat($ks, $pcplusmp_sys);
1301 # $stat or $newstat could be zero if they're uninitialized, or if
1302 # getstat() failed. If $stat is zero, move $newstat to $stat, sleep
1303 # and try again. If $newstat is zero, then we also sleep and try
1306 next if (!ref $newstat);
1308 $stat = $newstat;
1312 # 2. Compare $newstat with the prior set of values, result in %$delta.
1314 $delta = generate_delta($stat, $newstat);
1316 $stat = $newstat; # The new stats now become the old stats.