Skip to content

Commit

Permalink
fix: df use the POSIX output format (#1060)
Browse files Browse the repository at this point in the history
fix bug if the disk name is too long to display
  • Loading branch information
wudihechao authored Sep 23, 2024
1 parent e84b8f4 commit d4b04b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heartbeat/filesystem/filesystem_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

package filesystem

var dfOptions = []string{"-l"}
var dfOptions = []string{"-lP"}
var expectedLength = 6

func updatefileSystemInfo(values []string) map[string]string {
Expand Down

0 comments on commit d4b04b0

Please sign in to comment.