platform/architecture is more specific now (at least on unix)

This commit is contained in:
Jon Renner
2013-03-26 21:45:00 +08:00
parent 0496e5fd19
commit 80abc096b0

View File

@@ -904,7 +904,10 @@ class GlancesStats:
self.host = {}
self.host['os_name'] = platform.system()
self.host['hostname'] = platform.node()
self.host['platform'] = platform.architecture()[0]
if platform.uname()[4]:
self.host['platform'] = platform.uname()[4]
else:
self.host['platform'] = platform.architecture()[0]
is_archlinux = os.path.exists(os.path.join("/", "etc", "arch-release"))
if self.host['os_name'] == "Linux":
if is_archlinux: