Fix bug in one-line stats printing
authorDavid M Peixotto <dmp@rice.edu>
Tue, 10 May 2011 17:40:23 +0000 (12:40 -0500)
committerDavid M Peixotto <dmp@rice.edu>
Tue, 10 May 2011 17:40:23 +0000 (12:40 -0500)
commit8ae1fd33175b70e46c233d22195e7fc8e16997bf
tree00e98f5d9537095f39f75cc9fcf494137ab07ed7
parent2d5205118357cac8a2dd43b33bcd93a3c00f5558
Fix bug in one-line stats printing

The code that prints the "one-line" stats (i.e. the RTS -t flag) was
incorreclty printing zeros for some time values. These time values
were computed inside a conditional that was only true when printing
detailed stats (i.e. the RTS -s or -S flags).

This commit simply moves the computation out of the conditional so
they are available for the one-line stats output.
rts/Stats.c