Fix a couple of bug in the values() vector accessor

util/stats/db.py:
    need to import the values function
util/stats/info.py:
    it's just run

--HG--
extra : convert_revision : 3cb67d8112a1a5fdf761b73732859a71f585bd1f
This commit is contained in:
Nathan Binkert 2005-10-21 17:28:47 -04:00
parent 12822443a5
commit 13bf7e27ac
2 changed files with 2 additions and 2 deletions

View file

@ -158,7 +158,7 @@ class Database(object):
print 'run "%s" not found' % job print 'run "%s" not found' % job
return None return None
from info import scalar, vector, value, total, len from info import scalar, vector, value, values, total, len
stat.system = self[job.system] stat.system = self[job.system]
if scalar(stat): if scalar(stat):
return value(stat, run.run) return value(stat, run.run)

View file

@ -51,7 +51,7 @@ def values(stat, run):
stat = unproxy(stat) stat = unproxy(stat)
result = [] result = []
for i in xrange(len(stat)): for i in xrange(len(stat)):
val = value(stat, run.run, i) val = value(stat, run, i)
if val is None: if val is None:
return None return None
result.append(val) result.append(val)