[Rrd-announce] rrdtool --showtime

Ashutosh Kumar ashutosh at xinuos.com
Thu Apr 21 09:25:10 CEST 2016


Hi, 

In rrdtool v1.5.5 source 'showtime', which when set to 1 adds time values in the exported xml, is not being set because of which we do not get time values in xml. This however is fixed in the master branch of rrdtool by adding new flag ‘--showtime’ to rrdtool xport’ command. When can we expect that to be available in ports. Thanks!! 



<snip> 

int rrd_xport_format_xmljson(int flags,stringbuffer_t *buffer,image_desc_t *im,time_t start, time_t end, unsigned long step, unsigned long col_cnt, char **legend_v, rrd_value_t* data) { 



/* define some other stuff based on flags */ 

int json=0; 

if (flags &1) { json=1; } 

int showtime=0; 

if (flags &2) { showtime=1;} 



if (showtime) { 

snprintf(buf,sizeof(buf), 

" <%s><%s>%s</%s>", DATA_ROW_TAG,COL_TIME_TAG, dbuf, COL_TIME_TAG); 

} else { 

snprintf(buf,sizeof(buf), 

" <%s>", DATA_ROW_TAG); 

} 

addToBuffer(buffer,buf,0); 

</snip> 


Regards, 
Ashutosh 
+91 9899653573 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/rrd-announce/attachments/20160421/631a4f88/attachment.html>


More information about the rrd-announce mailing list