Skip to content

Commit

Permalink
[fix]wrong router history
Browse files Browse the repository at this point in the history
  • Loading branch information
thun888 committed Jul 15, 2024
1 parent c5293a0 commit 393e7c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

已在小米路由器R1D,R4A上测试通过

部分新路由无法获取cpu占用,如红米AX6000,AX1800。
大部分新路由无法获取cpu占用,如红米AX6000,AX1800。

## 图片展示

Expand Down Expand Up @@ -46,7 +46,7 @@

[Release](https://github.com/thun888/mirouter-ui/releases/)下载二进制文件

> 可访问[镜像站](http://h5ai.hzchu.top/Mirouter-ui/)以获取更快的速度
> 可访问[镜像站](https://mrui-api.hzchu.top/down/)以获取更快的速度
~~如果路由器有足够(内存)空间可以下载对应架构版本的部署在路由器上(ps:使用`uname -m`查看,若为armv7l,请使用armv5版本)~~

Expand Down
13 changes: 0 additions & 13 deletions modules/database/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,19 +154,6 @@ func Savetodb(databasePath string, dev []config.Dev, tokens map[int]string, maxs

}
}
db.Create(&RouterHistory{
Ip: ip,
RouterNum: routerNum,
Cpu: cpu,
Cpu_tp: cpu_tp,
Mem: mem,
UpSpeed: upSpeed,
DownSpeed: downSpeed,
UpTotal: upTotal,
DownTotal: downTotal,
DeviceNum: deviceNum,
})

}
defer func() {
sqlDB, err := db.DB()
Expand Down

0 comments on commit 393e7c1

Please sign in to comment.