Browse Source

Bugfix #9 : mplayer false failure

The du command was sending KB instead of bytes when file was "big"
leading to a false failure.
Yann Weber 5 years ago
parent
commit
27f64d6412
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      check.sh

+ 1
- 1
check.sh View File

@@ -340,7 +340,7 @@ check_audiostream_mplayer() {
340 340
 
341 341
 	$MPLAYER -endpos $sz_kb -ao pcm:file=$tmpfile "$1" 1>/dev/null 2>/dev/null
342 342
 	res=$?
343
-	bytes=$(du $tmpfile | cut -f1)
343
+	bytes=$(du -b $tmpfile | cut -f1)
344 344
 	rm $tmpfile 2>/dev/null
345 345
 
346 346
 	if [ "$bytes" -lt $expt_sz ]

Loading…
Cancel
Save