Skip to content

Commit

Permalink
fix bug in vdlm_stats
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t authored Oct 30, 2023
1 parent cc6d439 commit e448e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/scripts/vdlm_stats
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ while true; do
fi

# shellcheck disable=SC2016
echo "$(wc -l < /run/acars/vdlm.past5min.json) VDLM messages received in last 5 mins" | stdbuf -oL awk '{print "[vdlm_stats] " strftime("%Y/%m/%d %H:%M:%S", systime()) " " $0}'
echo "$(wc -l < /run/acars/vdlm2.past5min.json) VDLM messages received in last 5 mins" | stdbuf -oL awk '{print "[vdlm_stats] " strftime("%Y/%m/%d %H:%M:%S", systime()) " " $0}'

# rotate files keeping last 2 hours
for i in {24..1}; do
Expand Down

0 comments on commit e448e7d

Please sign in to comment.