summaryrefslogtreecommitdiff
path: root/util/stats/info.py
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-11-15 01:36:27 -0500
committerNathan Binkert <binkertn@umich.edu>2004-11-15 01:36:27 -0500
commit10e88b43fd8e7f504d3db0eb59fcf596eb16a985 (patch)
treec4a4595ce306e2d47252a6d1e66876b0b35c35a4 /util/stats/info.py
parented1ff7fca9b3bb390eb35748b6baa329690747cb (diff)
downloadgem5-10e88b43fd8e7f504d3db0eb59fcf596eb16a985.tar.xz
Fix more of the stats python stuff
util/stats/info.py: Make the binnings stuff work again. util/stats/stats.py: small patch for graphing make it so we can print out bins for the stat command --HG-- extra : convert_revision : c0279ac7030fd5146dd00801baa41e7baf97d1f4
Diffstat (limited to 'util/stats/info.py')
-rw-r--r--util/stats/info.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/stats/info.py b/util/stats/info.py
index a94563cf9..15a4a7d73 100644
--- a/util/stats/info.py
+++ b/util/stats/info.py
@@ -152,9 +152,8 @@ class Statistic(object):
def __setattr__(self, attr, value):
if attr == 'bins' or attr == 'ticks':
if attr == 'bins':
- global db
if value is not None:
- value = db.getBin(value)
+ value = source.getBin(value)
elif attr == 'samples' and type(value) is str:
value = [ int(x) for x in value.split() ]