From 11a8b8d234d2d17f86a4db83e32c08e867334cea Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 11 Jan 2013 15:31:01 +0100 Subject: g-i: notice hangs 6min earlier --- bin/g-i-installation.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/g-i-installation.sh') diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh index 4a487cb3..33570b2c 100755 --- a/bin/g-i-installation.sh +++ b/bin/g-i-installation.sh @@ -538,12 +538,12 @@ monitor_system() { *) ;; esac fi - # every 100 screenshots, starting from the 400ths one... - if [ $(($NR % 100)) -eq 0 ] && [ $NR -gt 400 ] ; then + # every 100 screenshots, starting from the 300ths one... + if [ $(($NR % 100)) -eq 0 ] && [ $NR -gt 300 ] ; then # from help let: "Exit Status: If the last ARG evaluates to 0, let returns 1; let returns 0 otherwise." - let OLD=NR-400 + let OLD=NR-300 PRINTF_OLD=$(printf "%06d" $OLD) - # test if this screenshot is basically the same as the one 400 screenshots ago + # test if this screenshot is basically the same as the one 300 screenshots ago # 400 pixels difference between to images is tolerated, to ignore updating clocks PIXEL=$(compare -metric AE snapshot_${PRINTF_NR}.ppm snapshot_${PRINTF_OLD}.ppm /dev/null 2>&1 || true ) # usually this returns an integer, but not always.... -- cgit v1.2.3-54-g00ecf