Changeset 588 in tmcsimulator for branches


Ignore:
Timestamp:
03/10/2020 10:13:15 AM (6 years ago)
Author:
jdalbey
Message:

fix fetch interval labelling

Location:
branches/realtime_VDS/cptms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/realtime_VDS/cptms/index.html

    r587 r588  
    150150    var kHARfile = "data_layers/har_locations_D12.gjson"; // CMS locations  
    151151    var lastFetchFile = "../dynamicdata/last_fetch_time.txt"; 
    152     var fetchInterval = 60; 
     152    var liveThreshold = 15; // minutes to be considerd "live" data 
    153153    var liveImage = "images/live.svg" 
    154154    var iconCMSactive = "images/icon_cms_active.png"; 
  • branches/realtime_VDS/cptms/js/vdsLayer.js

    r587 r588  
    168168    live.width = 50 ; 
    169169    live.height= 40 ; 
    170     notLive.src ="images/fetchError.jpg"; 
    171     notLive.width = 50 ; 
    172     notLive.height= 50 ; 
     170    notLive.src ="images/offline.jpg"; 
    173171    // if fetch is a success, display live img 
    174172    if (success) { 
     
    214212                msec -= ss * 1000; 
    215213                // display icon if less than 15  
    216                if (days === 0 && hh === 0 && mm < fetchInterval) 
     214               if (days === 0 && hh === 0 && mm < liveThreshold) 
    217215                    initLiveIcon(1) 
    218216                else  
Note: See TracChangeset for help on using the changeset viewer.