summaryrefslogtreecommitdiff
path: root/quotes.h
diff options
context:
space:
mode:
Diffstat (limited to 'quotes.h')
-rw-r--r--quotes.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/quotes.h b/quotes.h
index 12164b14..43062a26 100644
--- a/quotes.h
+++ b/quotes.h
@@ -8,20 +8,20 @@ namespace ledger {
class quotes_by_script : public commodity_base_t::updater_t
{
std::string price_db;
- unsigned long pricing_leeway;
+ time_duration pricing_leeway;
bool& cache_dirty;
public:
quotes_by_script(std::string _price_db,
- unsigned long _pricing_leeway,
+ time_duration _pricing_leeway,
bool& _cache_dirty)
: price_db(_price_db), pricing_leeway(_pricing_leeway),
cache_dirty(_cache_dirty) {}
virtual void operator()(commodity_base_t& commodity,
- const datetime_t& moment,
- const datetime_t& date,
- const datetime_t& last,
+ const ptime& moment,
+ const ptime& date,
+ const ptime& last,
amount_t& price);
};