Add num cpus in log.json

pull/1297/head
Piero Toffanin 2021-06-10 10:21:30 -04:00
rodzic 64c2d4322b
commit a9933299e2
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -5,6 +5,7 @@ import json
import datetime
import dateutil.parser
import shutil
import multiprocessing
from opendm.loghelpers import double_quote, args_to_dict
from vmem import virtual_memory
@ -64,6 +65,7 @@ class ODMLogger:
self.json = {}
self.json['odmVersion'] = odm_version()
self.json['memory'] = memory()
self.json['cpus'] = multiprocessing.cpu_count()
self.json['images'] = -1
self.json['options'] = args_to_dict(args)
self.json['startTime'] = self.start_time.isoformat()