diff --git a/README.md b/README.md index cd6b7a5..8abb2fc 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > 本项目为原项目[哪吒探针](https://github.com/naiba/nezha)的精简修改自用版 -![GitHub Workflow Status](https://img.shields.io/github/workflow/status/xOS/ServerStatus/Dashboard%20image?label=管理面板%20v0.1.18&logo=github&style=for-the-badge) ![Agent release](https://img.shields.io/github/v/release/xOS/ServerStatus?color=brightgreen&label=Agent&style=for-the-badge&logo=github) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/xOS/ServerStatus/Agent%20release?label=Agent%20CI&logo=github&style=for-the-badge) ![shell](https://img.shields.io/badge/安装脚本-v0.1.9-brightgreen?style=for-the-badge&logo=linux) +![GitHub Workflow Status](https://img.shields.io/github/workflow/status/xOS/ServerStatus/Dashboard%20image?label=管理面板%20v0.1.19&logo=github&style=for-the-badge) ![Agent release](https://img.shields.io/github/v/release/xOS/ServerStatus?color=brightgreen&label=Agent&style=for-the-badge&logo=github) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/xOS/ServerStatus/Agent%20release?label=Agent%20CI&logo=github&style=for-the-badge) ![shell](https://img.shields.io/badge/安装脚本-v0.1.9-brightgreen?style=for-the-badge&logo=linux) ## 注意: diff --git a/cmd/dashboard/controller/controller.go b/cmd/dashboard/controller/controller.go index 059566b..23659d9 100644 --- a/cmd/dashboard/controller/controller.go +++ b/cmd/dashboard/controller/controller.go @@ -157,7 +157,7 @@ var funcMap = template.FuncMap{ }, "TransLeft": func(a, b uint64) string { if a < b { - return "0KB" + return "0B" } return bytefmt.ByteSize(a - b) }, diff --git a/service/singleton/singleton.go b/service/singleton/singleton.go index 9cd5491..64724a6 100644 --- a/service/singleton/singleton.go +++ b/service/singleton/singleton.go @@ -12,7 +12,7 @@ import ( "github.com/xos/serverstatus/pkg/utils" ) -var Version = "v0.1.18" +var Version = "v0.1.19" var ( Conf *model.Config