From 13bf7e27ac7a20c80fb079fbaff0d6091a1e1c18 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Fri, 21 Oct 2005 17:28:47 -0400 Subject: [PATCH] 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 --- util/stats/db.py | 2 +- util/stats/info.py | 2 +- 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) -- 2.30.2