File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes rrd4j data insert problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "rrd4j data insert problem" Watch "rrd4j data insert problem" New topic
Author

rrd4j data insert problem

Rudradutt Joshi
Ranch Hand

Joined: Dec 06, 2008
Posts: 45

Hi,

I have recently started to working on rrd4j api,
my wrapper invokes my writing function every 5 seconds (Testing configuration),
I could see the log in next line as successfully inserted data,
but when I tries to redisplay data they are all NaN,
My RRD configuration is as follows


its my RRD create testing configuration,

Regards,
Rudradutt Joshi.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

If they're NaN, then what are they? Can you inspect that?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Rudradutt Joshi
Ranch Hand

Joined: Dec 06, 2008
Posts: 45

a
Rudradutt Joshi
Ranch Hand

Joined: Dec 06, 2008
Posts: 45

Ok, I had found the prob,
I had to provide time in seconds, and I was providing it in milliseconds since Epoch.
But last thing,
is it proper to provide time in seconds ??

as
in milliseconds

1238656668222
Thu Apr 02 12:47:48 IST 2009

where as in seconds it is

1238656668
Thu Jan 15 13:34:16 IST 1970

Everything changes for time,
though I query the same thing, so I got a result
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Well in the 2009 case you're providing it with a lot more milliseconds, so it seems to be doing the right thing
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: rrd4j data insert problem