From 390ea22f8608b28dacf1a0adc6528e2d1892b0a7 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Tue, 28 Feb 2017 13:08:17 +0000 Subject: [PATCH] Update osversion for Linux. --- gprMax/utilities.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gprMax/utilities.py b/gprMax/utilities.py index faed2a8a..98037c67 100644 --- a/gprMax/utilities.py +++ b/gprMax/utilities.py @@ -234,7 +234,8 @@ def get_host_info(): hyperthreading = True # OS version - osversion = platform.linux_distribution()[0] + ' (' + platform.linux_distribution()[1] + ')' + osrelease = subprocess.check_output("cat /proc/sys/kernel/osrelease", shell=True).decode('utf-8').strip() + osversion = 'Linux ' + osrelease + ', (' + platform.linux_distribution()[0] + ')' hostinfo = {} hostinfo['machineID'] = machineID.strip() @@ -248,6 +249,7 @@ def get_host_info(): except ValueError: hostinfo['physicalcores'] = hostinfo['logicalcores'] hostinfo['ram'] = psutil.virtual_memory().total + return hostinfo