inn.patch 511 B

123456789101112131415161718
  1. --- inn-2.3.4/scripts/innwatch.in.dist Wed Dec 4 15:02:05 2002
  2. +++ inn-2.3.4/scripts/innwatch.in Wed Dec 4 15:05:21 2002
  3. @@ -126,7 +126,12 @@
  4. NEXTSLEEP=1
  5. HASEXITED=false
  6. -while { sleep ${NEXTSLEEP} & wait; } ; : ; do
  7. +SLEEPTINY=1
  8. +while { sleep ${SLEEPTINY} & wait; } ; : ; do
  9. + NEXTSLEEP=`expr ${NEXTSLEEP} - ${SLEEPTINY}`
  10. + if [ $NEXTSLEEP -gt 0 ]; then
  11. + continue;
  12. + fi
  13. NEXTSLEEP=${INNWATCHSLEEPTIME}
  14. ## If news.daily is running, idle: we don't want to change the