Skip to content

Commit

Permalink
support incremental formatting
Browse files Browse the repository at this point in the history
Signed-off-by: liuminjian <[email protected]>
  • Loading branch information
liuminjian committed Aug 15, 2023
1 parent 12c6cd2 commit 61e48d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/task/scripts/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ then
used=$(df $rootdir --output=used|tail -n 1)
avail=$(df $rootdir --output=avail|tail -n 1)
size=$(df $rootdir --output=size|tail -n 1)
let used_percent=$used*100/$size
used_percent=$(df $rootdir --output=pcent|tail -n 1|sed 's/%//'|xargs)
let minus=$percent-$used_percent
if [ $minus -gt 0 ]
Expand Down

0 comments on commit 61e48d7

Please sign in to comment.