summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d47ebec)
raw | patch | inline | side by side (parent: d47ebec)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 25 Jan 2009 22:02:57 +0000 (22:02 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 25 Jan 2009 22:02:57 +0000 (22:02 +0000) |
program/src/rrd_dump.c | patch | blob | history | |
program/src/rrd_first.c | patch | blob | history |
diff --git a/program/src/rrd_dump.c b/program/src/rrd_dump.c
index b3dfcdca668dc1641b743fedc7572dc86c070e55..5fae397c488ff2fb4db1ec5d84b33649c8225ecc 100644 (file)
--- a/program/src/rrd_dump.c
+++ b/program/src/rrd_dump.c
+(rrd.rra_ptr[i].cur_row+1)
* rrd.stat_head->ds_cnt
* sizeof(rrd_value_t)),SEEK_SET);
- timer = - (rrd.rra_def[i].row_cnt-1);
+ timer = - (long)(rrd.rra_def[i].row_cnt-1);
ii=rrd.rra_ptr[i].cur_row;
for(ix=0;ix<rrd.rra_def[i].row_cnt;ix++){
ii++;
index 174af502bc92765a5927c6c889af3a158c68a039..79c39c34db39958819b39ee317186512e918eb9f 100644 (file)
--- a/program/src/rrd_first.c
+++ b/program/src/rrd_first.c
rrd.stat_head->ds_cnt *
sizeof(rrd_value_t)),
SEEK_SET);
- timer = - (rrd.rra_def[rraindex].row_cnt-1);
+ timer = - (long)(rrd.rra_def[rraindex].row_cnt-1);
if (rrd.rra_ptr[rraindex].cur_row + 1 > rrd.rra_def[rraindex].row_cnt) {
fseek(in_file,rra_start,SEEK_SET);
}