Fix some commands.
util/stats/stats.py: we only need the system if we're issuing one of the commands that uses a stored formula. --HG-- extra : convert_revision : d129a00eeba46a03f7d600922d679aa0f43636be
This commit is contained in:
parent
f427445753
commit
ee962a6b0b
1 changed files with 2 additions and 2 deletions
|
@ -132,8 +132,6 @@ def commands(options, command, args):
|
|||
info.source.connect()
|
||||
info.source.update_dict(globals())
|
||||
|
||||
system = info.source.__dict__[options.system]
|
||||
|
||||
if type(options.get) is str:
|
||||
info.source.get = options.get
|
||||
|
||||
|
@ -232,6 +230,8 @@ def commands(options, command, args):
|
|||
if len(args):
|
||||
raise CommandException
|
||||
|
||||
system = info.source.__dict__[options.system]
|
||||
|
||||
if command == 'usertime':
|
||||
import copy
|
||||
kernel = copy.copy(system.full_cpu.numCycles)
|
||||
|
|
Loading…
Reference in a new issue