[add] detect plateform arch 64/32 bit
This commit is contained in:
parent
54760730bf
commit
d723f0d0dd
3 changed files with 8 additions and 1 deletions
Binary file not shown.
BIN
bin/phantomjs_x86
Executable file
BIN
bin/phantomjs_x86
Executable file
Binary file not shown.
|
@ -25,6 +25,7 @@ currentProcess=$(ps -e | grep -v grep | grep thumb_ | wc -l)
|
|||
firstLevel=${hashUrl:0:2}
|
||||
secondLevel=${hashUrl:2:2}
|
||||
startPath=$sizeNameDir/$firstLevel/$secondLevel/
|
||||
getArch = $(getconf LONG_BIT)
|
||||
|
||||
if [ $site == "manual" ]
|
||||
then
|
||||
|
@ -54,7 +55,13 @@ then
|
|||
fi
|
||||
|
||||
start_time=`date +%s`
|
||||
timeout $timeOut ./phantomjs --disk-cache=false --local-storage-path=bin/ --ignore-ssl-errors=true rasterize.js "$site" "../cache/tmp/$hashUrl.png"
|
||||
if [getArch == 64]
|
||||
then
|
||||
timeout $timeOut ./phantomjs_x64 --disk-cache=false --local-storage-path=bin/ --ignore-ssl-errors=true rasterize.js "$site" "../cache/tmp/$hashUrl.png"
|
||||
else
|
||||
timeout $timeOut ./phantomjs_x86 --disk-cache=false --local-storage-path=bin/ --ignore-ssl-errors=true rasterize.js "$site" "../cache/tmp/$hashUrl.png"
|
||||
fi
|
||||
|
||||
|
||||
if [ ! -f "../cache/tmp/$hashUrl.png" ]
|
||||
then
|
||||
|
|
Loading…
Reference in a new issue