From 3ca3fb42eebf23ec31145e8c30a80c37458cba6d Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期三, 26 八月 2020 15:06:34 +0800 Subject: [PATCH] fix stay time --- EsClient.go | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/EsClient.go b/EsClient.go index 51baa86..dcf9f04 100644 --- a/EsClient.go +++ b/EsClient.go @@ -561,6 +561,8 @@ stayTime = stayTime + 1 } hitsSources[len(hitsSources)-1]["stayTime"] = stayTime + startTime = "" + continue //fmt.Println(hitsSources[len(hitsSources)-1]) } } @@ -688,6 +690,8 @@ stayTime = stayTime + 1 } hitsSources[len(hitsSources)-1]["stayTime"] = stayTime + startTime = "" + continue //fmt.Println(hitsSources[len(hitsSources)-1]) } } -- Gitblit v1.8.0