From 41604e0ea65cb342aa05074bf39bbbc832c4c86a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 18 Aug 2004 05:32:31 -0400 Subject: use now from datetime.cc --- quotes.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/quotes.cc b/quotes.cc index 4a21e9cb..0bc5779b 100644 --- a/quotes.cc +++ b/quotes.cc @@ -1,4 +1,5 @@ #include "quotes.h" +#include "datetime.h" #include @@ -9,8 +10,6 @@ void quotes_by_script::operator()(commodity_t * commodity, const amount_t& price, const std::time_t moment) { - std::time_t now = std::time(NULL); // the time of the query - if (! (commodity->flags & COMMODITY_STYLE_CONSULTED) && std::difftime(now, moment) < pricing_leeway && (! price || std::difftime(moment, date) > pricing_leeway)) { -- cgit v1.2.3