summaryrefslogtreecommitdiff
path: root/util/stats
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-10-21 17:28:47 -0400
committerNathan Binkert <binkertn@umich.edu>2005-10-21 17:28:47 -0400
commit13bf7e27ac7a20c80fb079fbaff0d6091a1e1c18 (patch)
treeb41475e29fed5372c04654b815fe82e92ee7b468 /util/stats
parent12822443a595eb1260f63ba756b110d5f91f0da6 (diff)
downloadgem5-13bf7e27ac7a20c80fb079fbaff0d6091a1e1c18.tar.xz
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
Diffstat (limited to 'util/stats')
-rw-r--r--util/stats/db.py2
-rw-r--r--util/stats/info.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/util/stats/db.py b/util/stats/db.py
index 0d321a360..1ece6df88 100644
--- a/util/stats/db.py
+++ b/util/stats/db.py
@@ -158,7 +158,7 @@ class Database(object):
print 'run "%s" not found' % job
return None
- from info import scalar, vector, value, total, len
+ from info import scalar, vector, value, values, total, len
stat.system = self[job.system]
if scalar(stat):
return value(stat, run.run)
diff --git a/util/stats/info.py b/util/stats/info.py
index 9932d7922..889af6d53 100644
--- a/util/stats/info.py
+++ b/util/stats/info.py
@@ -51,7 +51,7 @@ def values(stat, run):
stat = unproxy(stat)
result = []
for i in xrange(len(stat)):
- val = value(stat, run.run, i)
+ val = value(stat, run, i)
if val is None:
return None
result.append(val)