File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rrd4j data insert problem

 
Rudradutt Joshi
Ranch Hand
Posts: 45
Fedora Google Web Toolkit Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If they're NaN, then what are they? Can you inspect that?
 
Rudradutt Joshi
Ranch Hand
Posts: 45
Fedora Google Web Toolkit Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a
 
Rudradutt Joshi
Ranch Hand
Posts: 45
Fedora Google Web Toolkit Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well in the 2009 case you're providing it with a lot more milliseconds, so it seems to be doing the right thing
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic