Current time: 11-20-2019, 09:01 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
timestamp wrong to tsviewdb
09-11-2014, 01:59 AM
Post: #1
timestamp wrong to tsviewdb
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(),
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)