From bd3148c6902725a979f0448e37923faad85771b7 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 26 Feb 2010 00:24:21 +0000 Subject: [PATCH] stats: reorder slightly --- Commands/Stats.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Commands/Stats.hs b/Commands/Stats.hs index 744c60b9a..7a6d53422 100644 --- a/Commands/Stats.hs +++ b/Commands/Stats.hs @@ -32,11 +32,11 @@ showStats _ _ l today = stats = [ ("File", filepath $ journal l) ,("Period", printf "%s to %s (%d days)" (start span) (end span) days) + ,("Last transaction", maybe "none" show lastdate ++ + maybe "" (printf " (%d days ago)") lastelapsed) ,("Transactions", printf "%d (%0.1f per day)" tnum txnrate) ,("Transactions last 30 days", printf "%d (%0.1f per day)" tnum30 txnrate30) ,("Transactions last 7 days", printf "%d (%0.1f per day)" tnum7 txnrate7) - ,("Last transaction", maybe "none" show lastdate ++ - maybe "" (printf " (%d days ago)") lastelapsed) -- ,("Payees/descriptions", show $ length $ nub $ map tdescription ts) ,("Accounts", show $ length $ accounts l) ,("Commodities", show $ length $ commodities l)