summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2009-08-18 07:25:38 +0000
committerdeva <deva>2009-08-18 07:25:38 +0000
commitf4b19dd9c8339ff4591aea9d821bacdf568f5de3 (patch)
treee9cba820180f8a2c570e63e0b2b6131db3f8371a
parent9f58fbc3765e59c9e79c105ad6065e95e9579383 (diff)
Fixed missing ttl on 'completed'R1_1_0
-rw-r--r--server/src/server.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/server.cc b/server/src/server.cc
index a5a4880..f2be8a4 100644
--- a/server/src/server.cc
+++ b/server/src/server.cc
@@ -156,7 +156,9 @@ static std::string handleRequest(Transaction *transaction,
continue;
}
- bool completed = db.checkMacro(transaction->cpr, macro.attributes["name"]);
+ bool completed = db.checkMacro(transaction->cpr,
+ macro.attributes["name"],
+ time(NULL)-Conf::db_max_ttl);
answer += " <macro completed=";
if(completed) answer += "\"true\"";