mirror of https://github.com/nicolargo/glances.git
parent
415449d880
commit
81fb88e734
|
|
@ -116,7 +116,7 @@ class Plugin(GlancesPlugin):
|
|||
else:
|
||||
self.stats['linux_distro'] = ' '.join(linux_distro[:2])
|
||||
self.stats['os_version'] = platform.release()
|
||||
elif self.stats['os_name'] == "FreeBSD":
|
||||
elif self.stats['os_name'] in ('FreeBSD', 'OpenBSD'):
|
||||
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