diff --git a/README.md b/README.md
index 45a8852..bf0d825 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
LOGO designed by 熊大 .
-
+
:trollface: 哪吒监控 一站式轻监控轻运维系统。支持系统状态、HTTP(SSL 证书变更、即将到期、到期)、TCP、Ping 监控报警,命令批量执行和计划任务。
diff --git a/cmd/dashboard/rpc/rpc.go b/cmd/dashboard/rpc/rpc.go index 7a435cc..2e52a5d 100644 --- a/cmd/dashboard/rpc/rpc.go +++ b/cmd/dashboard/rpc/rpc.go @@ -33,7 +33,7 @@ func DispatchTask(serviceSentinelDispatchBus <-chan model.Monitor) { // 如果已经轮了一整圈又轮到自己,没有合适机器去请求,跳出循环 for round < 1 || workedServerIndex < endIndex { // 如果到了圈尾,再回到圈头,圈数加一,游标重置 - if workedServerIndex == len(dao.SortedServerList) { + if workedServerIndex >= len(dao.SortedServerList) { workedServerIndex = 0 round++ continue diff --git a/service/dao/dao.go b/service/dao/dao.go index e7cc734..c3beb78 100644 --- a/service/dao/dao.go +++ b/service/dao/dao.go @@ -13,7 +13,7 @@ import ( pb "github.com/naiba/nezha/proto" ) -var Version = "v0.10.5" // !!记得修改 README 中的 badge 版本!! +var Version = "v0.10.6" // !!记得修改 README 中的 badge 版本!! var ( Conf *model.Config