From 92d2a5488365e1adc2d9aee539838e1f861b89c9 Mon Sep 17 00:00:00 2001 From: naiba Date: Sun, 29 Aug 2021 14:41:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20dashboard:=20=E5=87=BA=E7=AB=99?= =?UTF-8?q?=E6=9C=88=E6=B5=81=E9=87=8F=E7=BB=9F=E8=AE=A1typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- cmd/dashboard/main.go | 2 +- service/dao/dao.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 462f97b..4b0bf64 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@
LOGO designed by 熊大 .

-    +   

:trollface: 哪吒监控 一站式轻监控轻运维系统。支持系统状态、HTTP(SSL 证书变更、即将到期、到期)、TCP、Ping 监控报警,命令批量执行和计划任务。

diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index 16982f0..a3ba025 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -82,7 +82,7 @@ func recordTransferHourlyUsage() { tx := model.Transfer{ ServerID: id, In: server.State.NetInTransfer - uint64(server.PrevHourlyTransferIn), - Out: server.State.NetInTransfer - uint64(server.PrevHourlyTransferIn), + Out: server.State.NetOutTransfer - uint64(server.PrevHourlyTransferOut), } server.PrevHourlyTransferIn = int64(server.State.NetInTransfer) server.PrevHourlyTransferOut = int64(server.State.NetOutTransfer) diff --git a/service/dao/dao.go b/service/dao/dao.go index 3128080..dcff0ff 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.9.31" // !!记得修改 README 中的 badge 版本!! +var Version = "v0.9.32" // !!记得修改 README 中的 badge 版本!! var ( Conf *model.Config