Skip to content

Commit 8bdefde

Browse files
committed
version 1 RRD reading fixed
1 parent 0b847d4 commit 8bdefde

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

29.3 KB
Binary file not shown.

src/lib/rrdFile.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ RRDHeader.prototype.calc_idxs = function() {
313313
this.rra_ptr_el_size=1*this.int_width;
314314

315315
this.header_size=this.rra_ptr_idx+this.rra_ptr_el_size*this.rra_cnt;
316+
if(this.rrd_version=="0001")
317+
this.header_size-=this.int_width;
316318
}
317319

318320
// Optional initialization

0 commit comments

Comments
 (0)