<div dir="ltr"><div><div><div><div>Hello there,<br></div>I am trying to use rrd_update_r() to update a rrdb through a c++ program.<br></div>So I am generating the argc/argv on the fly to pass into the function. <br><br></div>The originating string is the following:<br><span style="font-family:monospace,monospace"><br>        time_t tm = time(NULL);<br>        stringstream ss;<br>        ss << tm;<br>        string updstr = string("update sensors.rrd \<br>                --template CO2unf:CO2fil:O2pp:O2pct:O2temp:O2pres ")\<br>                + ss.str() + string(":1015:1000:123:20.63:38.48:987");</span><br><br></div>I get this error  from rrd_get_error(): <br><div style="margin-left:40px"><span style="font-family:monospace,monospace">sensors.rrd: expected timestamp not found in data source from update </span><br></div><br>Is timestamp not accepted in seconds from EPOCH?<br><div><div><div><div><div><div><br></div><div>Thank you in advance for your help!<br></div><div><br></div></div></div></div></div></div></div>