|
|
@ -164,7 +164,7 @@ class Host(object): |
|
|
|
information= {'kernel':'', 'uptime':'' } |
|
|
|
# returncode, kernel = self.p.run([u'uname', u'-r']) |
|
|
|
# information['kernel'] = kernel.strip() |
|
|
|
information['kernel'] = os.uname()[3] |
|
|
|
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) |
|
|
|
return information |
|
|
|