OpenBSD support

psutil >= 3.3.0 is required.
This commit is contained in:
Alessio Sergi 2015-11-25 22:52:25 +01:00
parent 415449d880
commit 81fb88e734
1 changed files with 1 additions and 1 deletions

View File

@ -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]