Skip to content

Commit

Permalink
extras: Update extras/mpvc-autostart
Browse files Browse the repository at this point in the history
  • Loading branch information
gmt4 committed Sep 27, 2024
1 parent d614e1d commit e107f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extras/mpvc-autostart
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ mpvc_autoscan()
ncheck=$(( ( $ncheck $nsign 1 ) % ( $NCHECK + 1 ) ))
if [ "$hour" -ge ${MPVC_HOURMIN} -a "$hour" -lt ${MPVC_HOURMAX} ]
then
[ "$ncheck" -gt 0 ] && mpvc -q resume # n>0 pings up: resume
[ "$ncheck" -le -$NCHECK ] && mpvc -q pause # n<0 pings down: pause
if [ "$ncheck" -gt 0 ]; then mpvc -q resume || true; fi # n>0 pings up: resume
if [ "$ncheck" -le -$NCHECK ]; then mpvc -q pause || true; fi # n<0 pings down: pause
fi
echo "# $(date) PERIOD=$PERIOD NCHECK=$NCHECK pause=$pause c=${#check} n=${ncheck} $check" # $@
done
Expand Down

0 comments on commit e107f86

Please sign in to comment.