Changeset 19581 for trunk/FACT++


Ignore:
Timestamp:
09/01/19 11:17:39 (5 years ago)
Author:
tbretz
Message:
Fixed a race condition (as this.ok was set before the output, the values which were output might have already been affected), in case of a grb also the State 'Stopping' is allowed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/Main.js

    r19573 r19581  
    314314    avg /= 320;
    315315
     316    console.out("  DeltaUov=%.3f (%.3f) [N(>0.033V)=%d]".$(avg, avg-this.last, cnt));
     317
    316318    this.ok = cnt<3;// || (this.last!=undefined && Math.abs(this.last-avg)<0.002);
    317 
    318     console.out("  DeltaUov=%.3f (%.3f) [N(>0.033V)=%d]".$(avg, avg-this.last, cnt));
    319 
    320319    this.last = avg;
    321320}
     
    10511050    var drive_states = sun.isUp || !system_on ? undefined : [ "Initialized", "Tracking", "OnTrack" ];
    10521051
     1052    if (drive_states && obs[sub].grb)
     1053        drive_states.push("Stopping");
     1054
    10531055    // A scheduled task was found, lets check if all servers are
    10541056    // still only and in reasonable states. If this is not the case,
Note: See TracChangeset for help on using the changeset viewer.