Fix a compiling warning

This commit is contained in:
an-tao 2018-10-09 20:12:47 +08:00
parent 94b76120a5
commit 4171f54c41

View File

@ -311,7 +311,7 @@ namespace drogon{
//rfc2616-3.3.1
//Full Date format like this:Sun, 06 Nov 1994 08:49:37 GMT
// Wed, 12 Sep 2018 09:22:40 GMT
static __thread uint64_t lastSecond=0;
static __thread int64_t lastSecond=0;
static __thread char lastTimeString[128]={0};
auto nowSecond=date.microSecondsSinceEpoch()/MICRO_SECONDS_PRE_SEC;
if(nowSecond==lastSecond)