diff options
author | Craig Earls <enderw88@gmail.com> | 2011-10-22 07:09:18 -0700 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2011-10-22 07:09:18 -0700 |
commit | 071d23d821c680880e873752d37df980d173d355 (patch) | |
tree | d10dcac737d53889565b2c1ed66dbed6da3a58d9 /src/stats.cc | |
parent | 884e55afca26f6d1e7cfe8f63e29b1621582dbd3 (diff) | |
download | fork-ledger-071d23d821c680880e873752d37df980d173d355.tar.gz fork-ledger-071d23d821c680880e873752d37df980d173d355.tar.bz2 fork-ledger-071d23d821c680880e873752d37df980d173d355.zip |
fixed bug 555, stats now properly reports postings per day
Diffstat (limited to 'src/stats.cc')
-rw-r--r-- | src/stats.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stats.cc b/src/stats.cc index 172971aa..8899ddf5 100644 --- a/src/stats.cc +++ b/src/stats.cc @@ -88,8 +88,8 @@ value_t report_statistics(call_scope_t& args) out << " ("; out.precision(2); - out << (double((statistics.latest_post - statistics.earliest_post).days()) / - double(statistics.posts_count)) << _(" per day)") << std::endl; + out << (double(statistics.posts_count)/ + double((statistics.latest_post - statistics.earliest_post).days())) << _(" per day)") << std::endl; out << _(" Uncleared postings: "); out.width(6); |