summaryrefslogtreecommitdiff
path: root/src/commodity.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-28 01:17:54 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-28 01:17:54 -0400
commitcc532c31aa8aa745d6d02c5c0cb22b3d75866590 (patch)
tree47eaa051abf286a08fe4406f41dacab4407ac352 /src/commodity.cc
parent559566751ddd29caf2cd74c3d44982c907bd1020 (diff)
downloadfork-ledger-cc532c31aa8aa745d6d02c5c0cb22b3d75866590.tar.gz
fork-ledger-cc532c31aa8aa745d6d02c5c0cb22b3d75866590.tar.bz2
fork-ledger-cc532c31aa8aa745d6d02c5c0cb22b3d75866590.zip
Added TRUE_CURRENT_TIME() macro
Because CURRENT_TIME() can now be a past date if --now is used.
Diffstat (limited to 'src/commodity.cc')
-rw-r--r--src/commodity.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commodity.cc b/src/commodity.cc
index 4041946b..54cb02d6 100644
--- a/src/commodity.cc
+++ b/src/commodity.cc
@@ -393,7 +393,7 @@ commodity_t::check_for_updated_price(const optional<price_point_t>& point,
DEBUG("commodity.download", "moment = " << *moment);
DEBUG("commodity.download", "slip.moment = " << seconds_diff);
} else {
- seconds_diff = (CURRENT_TIME() - point->when).total_seconds();
+ seconds_diff = (TRUE_CURRENT_TIME() - point->when).total_seconds();
DEBUG("commodity.download", "slip.now = " << seconds_diff);
}