Skip to content

Commit

Permalink
[FIX] device history (#27)
Browse files Browse the repository at this point in the history
* fix

* [ImgBot] Optimize images

*Total -- 435.32kb -> 276.76kb (36.42%)

/otherfile/images/config.png -- 20.77kb -> 11.67kb (43.81%)
/otherfile/images/history_index.png -- 414.56kb -> 265.09kb (36.05%)

Signed-off-by: ImgBotApp <[email protected]>

* [Opt][Incomplete]Optimize history processing

* [FIX][Build APP]Rclone

* [ADD]Support Devices History Display

* [OPT][FIX][BUILDAPP]

* [OPT]Float process

* [FIX]build app

* fix Upload Release Assets

* fix Upload Release Assets

* [FIX] device history

* FIX

---------

Signed-off-by: ImgBotApp <[email protected]>
Co-authored-by: ImgBotApp <[email protected]>
  • Loading branch information
thun888 and ImgBotApp authored Mar 24, 2024
1 parent 2d0b210 commit b99debc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
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

0 comments on commit b99debc

Please sign in to comment.