Skip to content

Commit

Permalink
Formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gdubicki committed Mar 19, 2022
1 parent 687cc41 commit 467c1db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/diskspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func DiskSpace(path string) Row {
panic(fmt.Errorf("error getting disk info"))
}

percentageUsed := (float64(di.Total-di.Free)/float64(di.Total))*100
percentageUsed := (float64(di.Total-di.Free) / float64(di.Total)) * 100

if percentageUsed >= warningThreshold {
color = ValueCriticalColor
Expand Down
2 changes: 1 addition & 1 deletion plugins/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package plugins

import (
"fmt"
"github.com/Tonyfilla/go-humanize"
. "github.com/gdubicki/dynamotd/dynamotd"
memoryLib "github.com/mackerelio/go-osstat/memory"
"github.com/Tonyfilla/go-humanize"
)

func Memory() Row {
Expand Down

0 comments on commit 467c1db

Please sign in to comment.