Index: test/logs_rotation.sh =================================================================== diff -u -rb606feb3c2230cc4053231ea7de71839011dd0ab -re55ddd8398a75819e134ed9bb3ef0b9eef581d08 --- test/logs_rotation.sh (.../logs_rotation.sh) (revision b606feb3c2230cc4053231ea7de71839011dd0ab) +++ test/logs_rotation.sh (.../logs_rotation.sh) (revision e55ddd8398a75819e134ed9bb3ef0b9eef581d08) @@ -278,7 +278,7 @@ #part_used_p=$(( $part_used_s * 100 / $part_size )) # this percentage cannot be calculated from df and it is not accurate. part_free_p=$(( $part_free_s * 100 / $part_size )) - path_used_s=$(du $log_partition/$log_folder 2>/dev/null | cut -f1) + path_used_s=$(du $log_partition/$log_folder 2>/dev/null | tail -n 1 | cut -f1) path_used_p=$(( $path_used_s * 100 / $part_size )) path_free_p=$(( 100 - $path_used_p )) }