Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] device history #27

Merged
merged 21 commits into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/buildapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ jobs:
name: mirouter-ui-darwin
path: ./build

- name: Upload Release Assets
uses: ncipollo/release-action@v1
- name: Upload Release Assets
uses: ncipollo/release-action@v1
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
build/
dist/
main.exe
aa.sh
8 changes: 4 additions & 4 deletions modules/database/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ func Savetodb(databasePath string, dev []config.Dev, tokens map[int]string, maxs
err = json.Unmarshal(data, &info)
checkErr(err)
mac := info.Mac
upSpeed := float64(info.UpSpeed) / 1024 / 1024
downSpeed := float64(info.DownSpeed) / 1024 / 1024
upTotal := float64(info.Upload) / 1024 / 1024
downTotal := float64(info.Download) / 1024 / 1024
upSpeed := float64(info.UpSpeed)
downSpeed := float64(info.DownSpeed)
upTotal := float64(info.Upload)
downTotal := float64(info.Download)
db.Create(&DevicesHistory{
Mac: mac,
UpSpeed: upSpeed,
Expand Down