diff options
author | deva <deva> | 2009-02-18 11:15:53 +0000 |
---|---|---|
committer | deva <deva> | 2009-02-18 11:15:53 +0000 |
commit | 34556253048b096eef1c0778c38f92ed6f9c0db8 (patch) | |
tree | 1b2cbeed122614995bd8023e25d094fe5e20e52f /server/src/queryhandlerpracro.cc | |
parent | 7fa06829b88949c777d73f9b41e5dd93ee21fe8e (diff) |
Changed string to time conversion to atol, added missing include.
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); |