Skip to content

Commit

Permalink
base-stats: Fix Watt Unit
Browse files Browse the repository at this point in the history
Watt had two implementations. Since having the unit
printed as Watt is more relevant than as Joule/Second,
keep the class.

Change-Id: Ic9ae755115e2eca94492f3d5b11245db9fe42bb6
Signed-off-by: Daniel R. Carvalho <[email protected]>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/43006
Reviewed-by: Bobby R. Bruce <[email protected]>
Maintainer: Bobby R. Bruce <[email protected]>
Tested-by: kokoro <[email protected]>
  • Loading branch information
odanrc committed Mar 17, 2021
1 parent b13b485 commit 68d612c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/base/stats/units.hh
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@
#define UNIT_RATE(T1, T2) Stats::Units::Rate<T1, T2>::get()
#define UNIT_RATIO Stats::Units::Ratio::get()
#define UNIT_COUNT Stats::Units::Count::get()
#define UNIT_WATT Stats::Units::Watt::get()
#define UNIT_UNSPECIFIED Stats::Units::Unspecified::get()

#define UNIT_WATT UNIT_RATE(Stats::Units::Joule, Stats::Units::Second)

namespace Stats {

/**
Expand Down

0 comments on commit 68d612c

Please sign in to comment.