Changeset 18398 for trunk/FACT++


Ignore:
Timestamp:
01/06/16 12:20:32 (9 years ago)
Author:
tbretz
Message:
Added a time property to ech $.event. A Date object with ms precision.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/viewer/index.php

    r17856 r18398  
    363363        // we need only one of the super memory hungry php arrays of size ROI
    364364        // instead of 1440.
    365         $JS = "$.data = new Array($.event.numPix); for (var i=0; i<$.event.numPix; i++) $.data[i] = $.unpack(i);";
     365        $JS = "$.event.time=new Date($.event.unixTime[1]*1000+$.event.unixTime[2]/1000); $.data = new Array($.event.numPix); for (var i=0; i<$.event.numPix; i++) $.data[i] = $.unpack(i);";
    366366        $v8->executeString($JS, 'internal');
    367367
Note: See TracChangeset for help on using the changeset viewer.