From 8a767885d658e4c52e1f81932426233aa1975ed8 Mon Sep 17 00:00:00 2001 From: Sascha Bischoff Date: Mon, 7 Jan 2013 16:56:36 -0500 Subject: stats: Fix swig wrapping for Tick in stats Tick was not correctly wrapped for the stats system, and therefore it was not possible to configure the stats dumping from the python scripts without defining Ticks as long long. This patch fixes the wrapping of Tick by copying the typemap of uint64_t to Tick. --- src/python/swig/stats.i | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/python/swig') diff --git a/src/python/swig/stats.i b/src/python/swig/stats.i index 46395eb22..3bdd2c9aa 100644 --- a/src/python/swig/stats.i +++ b/src/python/swig/stats.i @@ -123,6 +123,7 @@ reset() %ignore Stats::Info::flags; %import "base/stats/types.hh" +%import "base/types.hh" %include "base/stats/info.hh" %include "base/stats/output.hh" @@ -152,7 +153,7 @@ Output *initText(const std::string &filename, bool desc); void schedStatEvent(bool dump, bool reset, Tick when = curTick(), Tick repeat = 0); -void periodicStatDump(long long period = 0); +void periodicStatDump(Tick period = 0); void updateEvents(); -- cgit v1.2.3