summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-12-12 19:13:44 -0500
committerJohn Wiegley <johnw@newartisans.com>2010-12-12 19:13:44 -0500
commitc00188d6a897e63c6593dccf489337d1cc9a7a76 (patch)
treec4fc49c08dc5ec6e430c1e811b9726ab7f7be1d6
parent8fa5d1c59cf2cf3737f66a6b37aeb6a6f329f859 (diff)
downloadfork-ledger-c00188d6a897e63c6593dccf489337d1cc9a7a76.tar.gz
fork-ledger-c00188d6a897e63c6593dccf489337d1cc9a7a76.tar.bz2
fork-ledger-c00188d6a897e63c6593dccf489337d1cc9a7a76.zip
Increase display precision of hours to 2 places
-rw-r--r--src/session.cc2
-rw-r--r--test/baseline/opt-lots-actual.test4
-rw-r--r--test/regress/3AB70168.test6
3 files changed, 6 insertions, 6 deletions
diff --git a/src/session.cc b/src/session.cc
index 65ed0bc2..96aa98d4 100644
--- a/src/session.cc
+++ b/src/session.cc
@@ -48,7 +48,7 @@ void set_session_context(session_t * session)
amount_t::initialize();
amount_t::parse_conversion("1.0m", "60s");
- amount_t::parse_conversion("1.0h", "60m");
+ amount_t::parse_conversion("1.00h", "60m");
value_t::initialize();
}
diff --git a/test/baseline/opt-lots-actual.test b/test/baseline/opt-lots-actual.test
index 96141e01..c0ff4fc1 100644
--- a/test/baseline/opt-lots-actual.test
+++ b/test/baseline/opt-lots-actual.test
@@ -12,7 +12,7 @@ D 1.0000s
248720c {10.051463493s} [2006/03/14]
1339829c {1.86590975416s} [2006/03/14]
248720c {10.051463493s} [2006/03/14]
- -1388.9h
+ -1388.89h
>>>2
=== 0
reg --format '%(justify(scrub(total_expr), 40, 40, true))\n' --lots-actual
@@ -20,6 +20,6 @@ reg --format '%(justify(scrub(total_expr), 40, 40, true))\n' --lots-actual
1339829c
1588549c
1588549c
- -1388.9h
+ -1388.89h
>>>2
=== 0
diff --git a/test/regress/3AB70168.test b/test/regress/3AB70168.test
index 6c08b0bf..ffa6a573 100644
--- a/test/regress/3AB70168.test
+++ b/test/regress/3AB70168.test
@@ -5,9 +5,9 @@ o 2007/03/02 01:00:00
i 2007/03/11 23:00:00 B
o 2007/03/12 01:00:00
>>>1
- 2.0h A
- 2.0h B
+ 2.00h A
+ 2.00h B
--------------------
- 4.0h
+ 4.00h
>>>2
=== 0