diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-28 01:17:54 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-28 01:17:54 -0400 |
commit | cc532c31aa8aa745d6d02c5c0cb22b3d75866590 (patch) | |
tree | 47eaa051abf286a08fe4406f41dacab4407ac352 /src/commodity.cc | |
parent | 559566751ddd29caf2cd74c3d44982c907bd1020 (diff) | |
download | fork-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.cc | 2 |
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); } |