Skip to content

Commit

Permalink
Fix the df option to deal with df <= v8.10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mocchira committed Feb 25, 2015
1 parent 9481c45 commit 767897a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/leo_watchdog_disk.erl
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ state() ->
-spec(get_disk_data() ->
DiskData when DiskData::[#disk_data{}]).
get_disk_data() ->
Tokens_1 = string:tokens(os:cmd("df -lk"), "\n"),
Tokens_1 = string:tokens(os:cmd("df -lkP"), "\n"),
Tokens_2 = lists:delete(hd(Tokens_1), Tokens_1),
Tokens_3 = [ string:tokens(Row, " ") || Row <- Tokens_2 ],
get_disk_data(os:type(), Tokens_3).
Expand Down

0 comments on commit 767897a

Please sign in to comment.