Menu

#1 Incorrect results returned by getData()

open
nobody
None
5
2003-03-24
2003-03-24
No

Hi Ciaran,

I believe, I’ve found a bug in your jRRD library. I
suppose getData method of RRDatabase works
incorrect. As I figured out during a little investigation, the
bug seems to be in loadDate( DataChunk ) method of
Archive class, but I can be wrong. Anyway, to look at it,
just compare results that are printed out by dataChunk
dump and Archive dump. Run Main program and try to
find any of timestamps printed in dataChunk dump (last
section) in archive dump (XML). You will see that values
are different for some timestamps ( but not all ).

Hope this will help you:

[Archive dump]…

(!!!!) <!-- 2003-03-24 13:25:00 MSK / 1048501500 --> <v>
5,5486453391E4 </v><v> 2,0183273280E5 </v></row>

(!!!!) <!-- 2003-03-24 13:30:00 MSK / 1048501800 --> <v>
5,1026731975E4 </v><v> 1,9418101039E5 </v></row>

<!-- 2003-03-24 13:35:00 MSK / 1048502100 --> <v>
6,3583170237E4 </v><v> 2,7556813650E5 </v></row>

<!-- 2003-03-24 13:40:00 MSK / 1048502400 --> <v>
7,0548063757E4 </v><v> 3,1990969385E5 </v></row>

<!-- 2003-03-24 13:45:00 MSK / 1048502700 --> <v>
6,1787623605E4 </v><v> 3,8216019978E5 </v></row>

[Data chunk dump]…

(!!!!)1048501500: 4944.872475882571
7716.6970146705335

(!!!!)1048501800: 4274.082229691441
8103.759248800295

1048502100: 63583.17023714725 275568.1365026278

1048502400: 70548.0637568948 319909.6938490684

1048502700: 61787.62360488374 382160.1997750712

Discussion


Log in to post a comment.

MongoDB Logo MongoDB