Browse Source

fmt format fix

master
Lars Hoogestraat 5 months ago
parent
commit
b6e2de6833
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      main.go

+ 3
- 2
main.go View File

@ -539,8 +539,9 @@ func (f dfFlags) diskSpaceUsage() (string, status, error) {
if f.criticalBytes != "" {
criticalBytes, err := humanize.ParseBytes(f.criticalBytes)
if err != nil {
return "", unknown, errors.New(msg)
return "", unknown, fmt.Errorf("could not parse bytes from string %s, error: %v", f.criticalBytes, err)
}
if uint64(iAvailable[0]*1024) <= criticalBytes {
@ -553,7 +554,7 @@ func (f dfFlags) diskSpaceUsage() (string, status, error) {
warningBytes, err := humanize.ParseBytes(f.warningBytes)
if err != nil {
return "", unknown, fmt.Errorf("could not parse bytes from string %s, error: %v", f.warning, err)
return "", unknown, fmt.Errorf("could not parse bytes from string %s, error: %v", f.warningBytes, err)
}
if uint64(iAvailable[0]*1024) <= warningBytes {


Loading…
Cancel
Save