I need to update the time in my setInterval. The value is returned by the function that setInterval is executing.
read_log(); returns an integer.
var loop = setInterval(function(){count = read_log();}, count);
This returns that count is undefiend. So I need to get the count and pass it to setInterval