WebPagetest Forums
timestamp wrong to tsviewdb - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: timestamp wrong to tsviewdb (/showthread.php?tid=13237)



timestamp wrong to tsviewdb - ceeaspb - 09-11-2014 01:59 AM

Hi,
not sure if this has been reported but didn't see any search results for it,
timestamps being input into tsviewdb are in seconds, and tsviewdb expects millis.

{"recordTimestamp":1410362897,"points":[{"name":"availability","data":[1,1,1,1,1,1
...

the following temporarily patched it to prove the issue, not sure what the proper fix would be though.

this is WPT2.15 and tsviewdb built from git in the last week or so.

Thanks,
Alex

diff ./lib/tsview.inc.php ./lib/tsview.inc.php.BAK
105c105
< $data = array('recordTimestamp' => time()*1000,
---
> $data = array('recordTimestamp' => time(),