[tools] dstat traceback in int module

Radek Brich rbrich at redhat.com
Thu Mar 27 17:29:07 CET 2008


On Thursday 27 of March 2008 16:07:44 Dag Wieers wrote:
> The patch is ok, and I just simplified a bit:
>
>  	@@ -870,9 +869,10 @@
>  	             l = line.split()
>  	             if not l or l[0] != 'intr': continue
>  	             for name in self.vars:
>  	-                self.cn2[name] = long(l[int(name) + 2])
>  	-            self.cn2['total'] = self.cn2['total'] + long(l[int(name) +
> 2]) -        for name in self.vars + ['total']:
>  	+                if name != 'total':
>  	+                    self.cn2[name] = long(l[int(name) + 2])
>  	+            self.cn2['total'] = long(l[1])
>  	+        for name in self.vars:
>  	             self.val[name] = (self.cn2[name] - self.cn1[name]) * 1.0 /
> tick if step == op.delay:
>  	             self.cn1.update(self.cn2)
>
> I have add this patch. Thanks for the feedback !
>
> The new code in subversion uses a different scheduler (one that is not
> based on signal handling) which is somewhat more accurate. But I do need
> some more testing before it can be released.
>
> It also reports when there are timing problems (like in VMware where time
> is being synchronised every minute).

Nice, thanks for fast reaction.

-- 
Radek Brich
Base OS/core services
Red Hat, Brno, Czech Rep.


More information about the tools mailing list