summaryrefslogtreecommitdiff
path: root/src/stats.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-14 21:36:42 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-05-14 21:44:00 -0600
commitf4f3058b8cd75c04080f9b68cb54b9584eafb39f (patch)
treeeca9ca6ceca001209fb93c05b52e21031280d18c /src/stats.cc
parent96172669053bbba7263a370f109f70615049a0c6 (diff)
downloadfork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.gz
fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.bz2
fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.zip
Switch to using Boost.Format
Diffstat (limited to 'src/stats.cc')
-rw-r--r--src/stats.cc15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/stats.cc b/src/stats.cc
index 0966fee2..a12420b6 100644
--- a/src/stats.cc
+++ b/src/stats.cc
@@ -55,15 +55,12 @@ value_t report_statistics(call_scope_t& args)
assert(is_valid(statistics.earliest_post));
assert(is_valid(statistics.latest_post));
- {
- straccstream accum;
- out << ACCUM(accum << _("Time period: %1 to %2 (%3 days)")
- << format_date(statistics.earliest_post)
- << format_date(statistics.latest_post)
- << (statistics.latest_post -
- statistics.earliest_post).days())
- << std::endl << std::endl;
- }
+ out << format(_f("Time period: %1% to %2% (%3% days)")
+ % format_date(statistics.earliest_post)
+ % format_date(statistics.latest_post)
+ % (statistics.latest_post -
+ statistics.earliest_post).days())
+ << std::endl << std::endl;
out << _(" Files these postings came from:") << std::endl;