Permalink
Browse files

Preparing 0.5.7.

  • Loading branch information...
1 parent 9c8247e commit e827e29ad11c997ab10e2a5c924876bb81cbfb40 @dagwieers committed Dec 23, 2004
Showing with 24 additions and 12 deletions.
  1. +6 −1 ChangeLog
  2. +2 −1 Makefile
  3. +2 −1 TODO
  4. +8 −6 dstat
  5. +5 −2 dstat.spec
  6. +1 −1 dstat15
View
@@ -1,3 +1,7 @@
+* 0.5.7
+- Change Makefile to not install when run without target. (Kurt Roeckx)
+- Fixed another crash caused by /proc instability.
+
* 0.5.6
- Made sys and int stats unit-aware (so 10000 int/sec -> 10.0k) (Anton Blanchard)
- Improve conv() function and stat show() functions
@@ -13,7 +17,8 @@
- Added smp support (Bert de Bruijn)
- proc stats now show averages
- Check if output is a tty, else disable colors and updates
-- Fixed bug in interrupt stats on smp systems
+- Fixed bug in interrupt stats on smp systems (Bert de Bruijn)
+- Improved intterupt stats (Bert de Bruijn)
- Improvement in output, 10.0k or 5.0 will be displayed simply as 10k or 5
- proc stats now show floats
View
@@ -4,7 +4,8 @@ bindir = $(prefix)/bin
datadir = $(prefix)/share
mandir = $(datadir)/man
-all: install
+all:
+ @echo "No build phase."
install:
# -[ ! -f $(DESTDIR)$(sysconfdir)/dstat.conf ] && install -D -m0644 dstat.conf $(DESTDIR)$(sysconfdir)/dstat.conf
View
3 TODO
@@ -21,9 +21,10 @@
+ Look into interfacing with specific HW counters in /proc
### General bugs
++ Backport all changes to dstat15
+ Timer is not accurate on 2.6 kernel, every second there's a 1ms deviation (every 17mins -> 1sec)
### Stat bugs
+ tcp stat is very slow and generates lots of softirqs (on some systems)
-+ proc stat seems to be off by one, no clue why
+ Implement better (?) protection against counter rollovers
++ Fix bug with: ./dstat -tit -I 177
View
14 dstat
@@ -20,7 +20,7 @@ import os, sys, re, getopt, time, termios
import ConfigParser, urlparse, signal, resource
#import curses
-VERSION = '0.5.6'
+VERSION = '0.5.7'
enable = ('yes', 'on', 'true', '1')
disable = ('no', 'off', 'false', '0')
@@ -223,8 +223,9 @@ class dstat:
if isinstance(self.name, types.StringType):
return self.len
else:
- for i in self.cn2: break
- return len(self.cn2[i]) * self.len + len(self.cn2[i]) - 1
+ for name in self.cn2.keys():
+ return len(self.cn2[name]) * self.len + len(self.cn2[name]) - 1
+ return 0
def title1(self):
if isinstance(self.name, types.StringType):
@@ -255,7 +256,7 @@ class dstat:
return ansi['blue'] + ret
def check(self):
- if self.discover():
+ if self.discover() and self.width():
return True
return False
@@ -766,6 +767,7 @@ class dstat_net(dstat):
l = l2[1:] + l[1:]
else:
l = l[1:]
+ if len(l) < 9: continue
if name in (self.vars) :
self.cn2[name] = ( long(l[0]), long(l[8]) )
if not re.match('^(Inter-\||face|lo)$', name):
@@ -851,7 +853,7 @@ class dstat_proc(dstat):
self.val['processes'] = 0
self.cn2[name] = long(l[1])
elif name == 'procs_running':
- self.cn2[name] = self.cn2[name] + long(l[1]) - 1
+ self.cn2[name] = self.cn2[name] + long(l[1]) - 2
elif name == 'procs_blocked':
self.cn2[name] = self.cn2[name] + long(l[1])
if update:
@@ -1281,7 +1283,7 @@ def main():
if update <= op.delay * op.count or op.count == -1:
signal.pause()
- ### The last step in a loop is to show the definitive line on a new line
+ ### The last step in a loop is to show the definitive line on its own line
if step == op.delay:
sys.stdout.write('\n' + ansi['reset'] + ansi['clearline'] + ansi['save'])
else:
View
@@ -9,7 +9,7 @@
Summary: Versatile vmstat, iostat and ifstat replacement
Name: dstat
-Version: 0.5.6
+Version: 0.5.7
Release: 1
License: GPL
Group: System Environment/Base
@@ -72,7 +72,10 @@ interprete real-time data as easy as possible.
%{_bindir}/dstat
%changelog
-* Wed Dec 08 2004 Dag Wieers <dag@wieers.com> - 0.5.6-1
+* Tue Dec 21 2004 Dag Wieers <dag@wieers.com> - 0.5.7-1
+- Updated to release 0.5.7.
+
+* Mon Dec 20 2004 Dag Wieers <dag@wieers.com> - 0.5.6-1
- Updated to release 0.5.6.
* Thu Dec 02 2004 Dag Wieers <dag@wieers.com> - 0.5.5-1
View
@@ -19,7 +19,7 @@ import fcntl, struct, termios
import os, sys, re, getopt, time, string
import ConfigParser, urlparse, signal, resource
-VERSION = '0.5.6'
+VERSION = '0.5.7'
enable = ('yes', 'on', 'true', '1')
disable = ('no', 'off', 'false', '0')

0 comments on commit e827e29

Please sign in to comment.