Ensure CPU topology information is integers on all platforms

On Windows it was a string, go figure.
This commit is contained in:
2018-08-10 19:48:18 +02:00
parent a2cf5eb571
commit 9ab37dbb45

View File

@@ -101,8 +101,8 @@ def gatherSystemInfo(ctx):
cpu_info = cpuinfo.get_cpu_info()
cpu_topology = _getCPUTopologyInformation()
system_info['cpu_brand'] = cpu_info['brand']
system_info["num_cpu_threads"] = cpu_topology['num_logical_threads']
system_info["num_cpu_sockets"] = cpu_topology['num_sockets']
system_info["num_cpu_cores"] = cpu_topology['num_physical_cores']
system_info["num_cpu_threads"] = int(cpu_topology['num_logical_threads'])
system_info["num_cpu_sockets"] = int(cpu_topology['num_sockets'])
system_info["num_cpu_cores"] = int(cpu_topology['num_physical_cores'])
system_info['devices'] = _getBlenderDeviceInfo(ctx)
return system_info