tar1090.sh: change way to get epcoch microseconds

This commit is contained in:
Matthias Wirth
2024-05-15 01:23:38 +02:00
parent 228a9a8042
commit d341eadd02

View File

@@ -64,7 +64,7 @@ fi
newChunk() {
if [[ "$1" != "refresh" ]]; then
curChunk="chunk_$(date +%s%N | head -c-7).gz"
curChunk="chunk_$(date +%s%3N).gz"
echo "$curChunk" >> chunk_list
echo "$curChunk" >> chunk_list_all
cp "$1" "$curChunk"
@@ -154,7 +154,7 @@ while true; do
echo "{ \"files\" : [ ] }" | gzip -1 > empty.gz
fi
date=$(date +%s%N | head -c-7)
date=$(date +%s%3N)
next_error=0
error_printed=0