From 03bf5dfc49cdd72b087a8bcf06225c5816557087 Mon Sep 17 00:00:00 2001 From: songwenping Date: Fri, 24 Dec 2021 08:09:25 +0000 Subject: [PATCH] Fix the ut Change-Id: Ifec51ba39573165df63401751214a05f1291b038 --- venus/modules/search/action.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/venus/modules/search/action.py b/venus/modules/search/action.py index 54d7e47..f738fc5 100644 --- a/venus/modules/search/action.py +++ b/venus/modules/search/action.py @@ -65,27 +65,27 @@ class SearchCore(object): diff = end_time - start_time per_diff = diff / 60 if per_diff <= 1: - return "1s", "", "1second" + return "1s", "1秒", "1second" elif per_diff <= 10: - return "10s", "10seconds", "10seconds" + return "10s", "10秒", "10seconds" elif per_diff <= 30: - return "30s", "30seconds", "30seconds" + return "30s", "30秒", "30seconds" elif per_diff <= 60: - return "1m", "1minute", "1minute" + return "1m", "1分钟", "1minute" elif per_diff <= 600: - return "10m", "10minutes", "10minutes" + return "10m", "10分钟", "10minutes" elif per_diff <= 1800: - return "30m", "30minutes", "30minutes" + return "30m", "30分钟", "30minutes" elif per_diff <= 3600: - return "1h", "1hour", "1hour" + return "1h", "1小时", "1hour" elif per_diff <= 14400: - return "3h", "3hours", "3hours" + return "3h", "3小时", "3hours" elif per_diff <= 21600: - return "6h", "6hours", "6hours" + return "6h", "6小时", "6hours" elif per_diff <= 43200: - return "12h", "12hours", "12hours" + return "12h", "12小时", "12hours" else: - return "24h", "1day", "1day" + return "24h", "1天", "1day" def params(self, type, module_name, index_type): field = ""