hashes tient compte du cache
This commit is contained in:
@@ -11,24 +11,18 @@ fi
|
||||
touch $flag
|
||||
|
||||
cd $APPS_PATH/methode/$METHODE
|
||||
for BLOCK in `grep LAST $DATA_PATH/block_list.txt | awk '{print $2}'`
|
||||
for TYPE in CACHE LAST
|
||||
do
|
||||
if [ ! -f $DATA_PATH/$METHODE/$BLOCK.png ]
|
||||
then
|
||||
for BLOCK in `grep $TYPE $DATA_PATH/block_list.txt | awk '{print $2}'`
|
||||
do
|
||||
BLOCK_HEIGHT=`grep $BLOCK $DATA_PATH/block_list.txt | awk '{print $3}'`
|
||||
php robot.php $BLOCK $((RANDOM % 6))
|
||||
|
||||
echo $BLOCK_HEIGHT $BLOCK >> $DATA_PATH/hashes2hashes/liste.txt
|
||||
fi
|
||||
|
||||
BNAME=`grep $BLOCK $DATA_PATH/block_list.txt | awk '{print $1}'`
|
||||
if [ "$BNAME" == "LAST" ]
|
||||
then
|
||||
touch $DATA_PATH/$METHODE/$BLOCK.png
|
||||
else
|
||||
touch -t $date $DATA_PATH/$METHODE/$BLOCK.png
|
||||
fi
|
||||
BNAME=`grep $BLOCK $DATA_PATH/block_list.txt | awk '{print $1}'`
|
||||
|
||||
if [ ! -f $DATA_PATH/$METHODE/$BLOCK.png ]
|
||||
then
|
||||
php robot.php $BLOCK $((RANDOM % 6))
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
rm -f $flag
|
||||
|
||||
Reference in New Issue
Block a user