mirror of https://gitlab.com/baco/winsysinfo.git
Stripped CPU string from white-spaces around
This commit is contained in:
parent
2a916b5b4b
commit
8b23c6d977
|
@ -25,7 +25,7 @@ def get_registry_value(key, subkey, value):
|
|||
|
||||
class SystemInformation:
|
||||
def __init__(self):
|
||||
self.cpu = 'CPU:\t{}'.format(self._cpu())
|
||||
self.cpu = 'CPU:\t{}'.format(self._cpu().strip())
|
||||
self.graphics = 'Video:\t{}'.format(self._graphics())
|
||||
self.totalRam, self.availableRam = self._ram()
|
||||
self.ram = 'RAM:\t{:.2f}GB total'.format(self.totalRam/(1024**3))
|
||||
|
@ -121,8 +121,8 @@ class SystemInformation:
|
|||
|
||||
def save(self):
|
||||
with open('system_information.txt', 'w') as f:
|
||||
f.write('System Information\n')
|
||||
f.write('==================\n\n')
|
||||
f.write('System Information\n'
|
||||
'==================\n\n')
|
||||
f.write(self.cpu + '\n')
|
||||
f.write(self.graphics + '\n')
|
||||
f.write(self.ram + '\n')
|
||||
|
|
Loading…
Reference in New Issue