From: Nathan Binkert Date: Fri, 21 Oct 2005 21:28:47 +0000 (-0400) Subject: Fix a couple of bug in the values() vector accessor X-Git-Tag: m5_2.0_beta1~310^2~7 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13bf7e27ac7a20c80fb079fbaff0d6091a1e1c18;p=gem5.git 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 --- 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)