Commit ae61ae86 authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

parent ec734b11
......@@ -70,7 +70,9 @@ function update() {
}
catch(err) {
var ret = String(err.stdout).split(' ')
var diff = eval(ret[1])
var ptrl = ret[1].indexOf('(')
var ptrr = ret[1].indexOf(')')
var diff = parseFloat(ret[1].slice(ptrl+1,ptrr))
console.log('image difference: '+diff)
}
if (diff > difference_threshold) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment