Commit 2ea7290c authored by Christophe Massiot's avatar Christophe Massiot

write aux files more often + cosmetics

parent 4bbf4303
......@@ -125,7 +125,7 @@ static void OutputFirst(void)
}
/*****************************************************************************
* OutputFirst: emulate CBR at the end
* OutputLast: emulate CBR at the end
*****************************************************************************/
static void OutputLast(void)
{
......
......@@ -59,7 +59,7 @@
#undef DEBUG_WRITEBACK
#define POLL_TIMEOUT 1000 /* 1 s */
#define MAX_LATENESS INT64_C(27000000) /* 1 s */
#define FILE_FLUSH INT64_C(27000000) /* 1 s */
#define FILE_FLUSH INT64_C(2700000) /* 100 ms */
/*****************************************************************************
* Local declarations
......
......@@ -38,10 +38,10 @@ cd "$DIR"
NB_CHUNKS=`ls -a -1 *.ts | wc -l`
if test $NB_CHUNKS -gt $WANTED_CHUNKS; then
ls -t *.ts | tail -n $(($WANTED_CHUNKS-$NB_CHUNKS)) | cut -d. -f 1 | xargs -I FILE sh -c "rm FILE.ts FILE.aux*"
ls -t *.ts 2>/dev/null | tail -n $(($WANTED_CHUNKS-$NB_CHUNKS)) | cut -d. -f 1 | xargs -I FILE sh -c "rm -rf FILE.*"
fi
FILES=`find . -name \*.ts -size +7 -print`
if test -n "$FILES"; then
ls -t $FILES | tail -n 1 | xargs basename | cut -d. -f 1
ls -t $FILES 2>/dev/null | tail -n 1 | xargs basename | cut -d. -f 1
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment