[rrd-developers] [rrd-users] Segmentation faults

Tobias Oetiker tobi at oetiker.ch
Mon Apr 6 16:10:22 CEST 2009


Hi Dez,

can you try this patch:

Index: branches/1.3/program/src/rrd_update.c
===================================================================
--- branches/1.3/program/src/rrd_update.c       (revision 1746)
+++ branches/1.3/program/src/rrd_update.c       (working copy)
@@ -1943,7 +1943,7 @@
             /* append info to the return hash */
             *pcdp_summary = rrd_info_push(*pcdp_summary,
                                           sprintf_alloc
-                                          ("[%lli]RRA[%s][%lu]DS[%s]", rra_time,
+                                          ("[%lli]RRA[%s][%lu]DS[%s]", (long long)rra_time,
                                            rrd->rra_def[rra_idx].cf_nam,
                                            rrd->rra_def[rra_idx].pdp_cnt,
                                            rrd->ds_def[ds_idx].ds_nam),


cheers
tobi


-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-developers mailing list