make vars local
Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
parent
bc5c586e93
commit
43e3bea088
1 changed files with 3 additions and 3 deletions
|
@ -25,9 +25,9 @@ var printRolloutStats = func()
|
||||||
|
|
||||||
var gndTimer = maketimer(1, func()
|
var gndTimer = maketimer(1, func()
|
||||||
{
|
{
|
||||||
c_t = dist_from_center_thr();
|
var c_t = dist_from_center_thr();
|
||||||
dist_c = c_t[0];
|
var dist_c = c_t[0];
|
||||||
totalDev = rolloutStats[0] * rolloutStats[1] + dist_c;
|
var totalDev = rolloutStats[0] * rolloutStats[1] + dist_c;
|
||||||
rolloutStats[0] = rolloutStats[0] + 1;
|
rolloutStats[0] = rolloutStats[0] + 1;
|
||||||
rolloutStats[1] = totalDev / rolloutStats[0];
|
rolloutStats[1] = totalDev / rolloutStats[0];
|
||||||
if (dist_c > rolloutStats[2])
|
if (dist_c > rolloutStats[2])
|
||||||
|
|
Loading…
Reference in a new issue