Browse Source

ecn-robots: finalised host uname.

master
Nagy Karoly Gabriel 15 years ago
parent
commit
1d0c918479
1 changed files with 0 additions and 2 deletions
  1. +0
    -2
      vserver.py

+ 0
- 2
vserver.py

@ -162,8 +162,6 @@ class Host(object):
@property
def info(self):
information= {'kernel':'', 'uptime':'' }
# returncode, kernel = self.p.run([u'uname', u'-r'])
# information['kernel'] = kernel.strip()
information['kernel'] = os.uname()[2]
secs = math.ceil(float(self.p.read_binary(u'/proc/uptime').split()[1]))
information['uptime'] = self.p.convert_human(secs)

Loading…
Cancel
Save