From 2a9ffa62102a896e21048c23d311fed5f8471e68 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期三, 17 六月 2020 13:56:35 +0800 Subject: [PATCH] time --- algorithm/IndirectAlg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/algorithm/IndirectAlg.c b/algorithm/IndirectAlg.c index 0ad09fd..69640eb 100644 --- a/algorithm/IndirectAlg.c +++ b/algorithm/IndirectAlg.c @@ -87,7 +87,7 @@ if (status != nullptr) { // cout<< "iter " << iter->first <<' '<< iter->second << status->lastTime << endl; // printf("%ld, %ld, %ld\n", time(NULL), status->lastTime, (time(0) - status->lastTime)); - if((time(NULL) - status->lastTime) > this->keepTime) { + if(difftime(time(NULL), status->lastTime) > this->keepTime*2) { std::cout << status->id << "鑴辩鐩戞帶鍖�, remove from map\n"; delete status; statusMap.erase(iter); -- Gitblit v1.8.0