From 6ef663928d7d4fcd1a6f7fd44e7dfb0efdae6c12 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 22 Apr 2016 18:20:01 +0800 Subject: [PATCH] fix initial error count for redis. Signed-off-by: Bo-Yi Wu --- gorush/status.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gorush/status.go b/gorush/status.go index 6d5f1ca..029f8e6 100644 --- a/gorush/status.go +++ b/gorush/status.go @@ -48,6 +48,12 @@ func InitAppStatus() { Password: PushConf.Stat.Redis.Password, DB: PushConf.Stat.Redis.DB, }) + + RushStatus.TotalCount = getTotalCount() + RushStatus.Ios.PushSuccess = getIosSuccess() + RushStatus.Ios.PushError = getIosError() + RushStatus.Android.PushSuccess = getAndroidSuccess() + RushStatus.Android.PushError = getAndroidError() default: initApp() }