summaryrefslogtreecommitdiff
path: root/ledger.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ledger.cc')
-rw-r--r--ledger.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/ledger.cc b/ledger.cc
index 31a369b0..5f5326a4 100644
--- a/ledger.cc
+++ b/ledger.cc
@@ -40,13 +40,12 @@ amount * commodity::price(std::time_t * when,
for (price_map::reverse_iterator i = history.rbegin();
i != history.rend();
- i++) {
+ i++)
if (std::difftime(*when, (*i).first) >= 0) {
age = (*i).first;
price = (*i).second;
break;
}
- }
extern long pricing_leeway;
time_t now = time(NULL); // the time of the query