diff options
Diffstat (limited to 'server/src/queryhandlerpracro.cc')
-rw-r--r-- | server/src/queryhandlerpracro.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/queryhandlerpracro.cc b/server/src/queryhandlerpracro.cc index 8219461..3dd5b52 100644 --- a/server/src/queryhandlerpracro.cc +++ b/server/src/queryhandlerpracro.cc @@ -28,6 +28,8 @@ #include "debug.h" +#include <stdlib.h> + QueryHandlerPracro::QueryHandlerPracro(Database *db, std::string cpr) { this->cpr = cpr; @@ -43,7 +45,7 @@ QueryResult QueryHandlerPracro::exec(Query &query) fields.push_back(field); std::string ttl = query.attributes["ttl"]; - time_t oldest = time(NULL) - atoi(ttl.c_str()); + time_t oldest = time(NULL) - atol(ttl.c_str()); Values values = db->getValues(cpr, fields, oldest); |