Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
Fix the tcp/udp/unix/raw/socket statistics
Browse files Browse the repository at this point in the history
This fixes #92
  • Loading branch information
dagwieers committed Aug 19, 2016
1 parent b24547b commit 4c47a34
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions dstat
Original file line number Diff line number Diff line change
Expand Up @@ -1485,8 +1485,8 @@ class dstat_raw(dstat):
self.nick = ('raw',)
self.vars = ('sockets',)
self.type = 'd'
self.width = 3
self.scale = 100
self.width = 4
self.scale = 1000
self.open('/proc/net/raw')

def extract(self):
Expand All @@ -1501,8 +1501,8 @@ class dstat_socket(dstat):
def __init__(self):
self.name = 'sockets'
self.type = 'd'
self.width = 3
self.scale = 100
self.width = 4
self.scale = 1000
self.open('/proc/net/sockstat')
self.nick = ('tot', 'tcp', 'udp', 'raw', 'frg')
self.vars = ('sockets:', 'TCP:', 'UDP:', 'RAW:', 'FRAG:')
Expand Down Expand Up @@ -1612,7 +1612,7 @@ class dstat_tcp(dstat):
self.vars = ('listen', 'established', 'syn', 'wait', 'close')
self.type = 'd'
self.width = 4
self.scale = 100
self.scale = 1000
self.open('/proc/net/tcp', '/proc/net/tcp6')

def extract(self):
Expand Down Expand Up @@ -1653,8 +1653,8 @@ class dstat_udp(dstat):
self.nick = ('lis', 'act')
self.vars = ('listen', 'established')
self.type = 'd'
self.width = 3
self.scale = 100
self.width = 4
self.scale = 1000
self.open('/proc/net/udp', '/proc/net/udp6')

def extract(self):
Expand All @@ -1669,8 +1669,8 @@ class dstat_unix(dstat):
self.nick = ('dgm', 'str', 'lis', 'act')
self.vars = ('datagram', 'stream', 'listen', 'established')
self.type = 'd'
self.width = 3
self.scale = 100
self.width = 4
self.scale = 1000
self.open('/proc/net/unix')

def extract(self):
Expand Down

0 comments on commit 4c47a34

Please sign in to comment.