Permalink
Browse files

Removed SwapCached from the Cached counter. (Peter Rabbitson)

  • Loading branch information...
1 parent a6ba1a8 commit 7de9a06fbd8f75c8c7c4cdfcb249d651a9ca43e0 @dagwieers committed Apr 18, 2007
Showing with 5 additions and 4 deletions.
  1. +3 −0 ChangeLog
  2. +1 −2 dstat
  3. +1 −2 dstat15
View
@@ -1,3 +1,6 @@
+* 0.6.6 - ... - released 18/04/2007
+- Removed SwapCached from the Cached counter. (Peter Rabbitson)
+
* 0.6.5 - Torrox - released 17/04/2007
- Added VMware ESX plugins (Bert de Bruijn)
- Added tcp6 and udp6 statistics within dstat_tcp and dstat_udp
View
3 dstat
@@ -987,9 +987,8 @@ class dstat_mem(dstat):
l = line.split()
if len(l) < 2: continue
name = l[0].split(':')[0]
- if name in self.vars + ('MemTotal', 'SwapCached'):
+ if name in self.vars + ('MemTotal', ):
self.val[name] = long(l[1]) * 1024.0
- self.val['Cached'] = self.val['Cached'] + self.val['SwapCached']
self.val['MemUsed'] = self.val['MemTotal'] - self.val['MemFree'] - self.val['Buffers'] - self.val['Cached']
class dstat_net(dstat):
View
@@ -985,9 +985,8 @@ class dstat_mem(dstat):
l = string.split(line)
if len(l) < 2: continue
name = string.split(l[0], ':')[0]
- if name in self.vars + ('MemTotal', 'SwapCached'):
+ if name in self.vars + ('MemTotal', ):
self.val[name] = long(l[1]) * 1024.0
- self.val['Cached'] = self.val['Cached'] + self.val['SwapCached']
self.val['MemUsed'] = self.val['MemTotal'] - self.val['MemFree'] - self.val['Buffers'] - self.val['Cached']
class dstat_net(dstat):

0 comments on commit 7de9a06

Please sign in to comment.