mirror of https://github.com/nicolargo/glances
Solaris support in system info
parent
8885313865
commit
33e33875b1
|
@ -123,7 +123,8 @@ class Plugin(GlancesPlugin):
|
|||
else:
|
||||
self.stats['linux_distro'] = ' '.join(linux_distro[:2])
|
||||
self.stats['os_version'] = platform.release()
|
||||
elif self.stats['os_name'].endswith('BSD'):
|
||||
elif (self.stats['os_name'].endswith('BSD') or
|
||||
self.stats['os_name'] == 'SunOS'):
|
||||
self.stats['os_version'] = platform.release()
|
||||
elif self.stats['os_name'] == "Darwin":
|
||||
self.stats['os_version'] = platform.mac_ver()[0]
|
||||
|
|
Loading…
Reference in New Issue