From b9557f67d1c6be2cdc90d9e1ab09eacf318660d7 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Mon, 1 Mar 2010 17:20:57 -0300 Subject: added missing comments --- src/monitor.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/monitor.py b/src/monitor.py index fde405b..72408b3 100644 --- a/src/monitor.py +++ b/src/monitor.py @@ -89,6 +89,7 @@ class Monitor: return 0 def get_status(self, ifname): + """Determines interface status""" try: with open("/sys/class/net/%s/operstate" % ifname) as fd: status = fd.readline().strip() @@ -125,6 +126,7 @@ class Monitor: return os.access("/sys/class/net/%s/wireless" % iface, os.R_OK) def get_address(self, ifname): + """Get MAC address of a card""" mac=_("No physical address") # ip address try: @@ -157,6 +159,7 @@ class Monitor: return net def get_traffic(self, iface, net=None): + """Get traffic information""" if not net: if not self.net: self.readnet() -- cgit v1.2.1