[collectd] Strange Time value in notification test

Manuel Luis Sanmartín Rozada manuel.luis at gmail.com
Thu Jun 19 00:52:18 CEST 2014


In utils_time.h

#define CDTIME_T_TO_TIME_T(t) ((time_t) ((t) / 1073741824))

The problem is that when it parses the time in PUTNOTIF it's not converted
from a timestamp to cdtime_t

Fixed in https://github.com/collectd/collectd/pull/644


On Wed, Jun 18, 2014 at 10:54 PM, Dan Fandrich <dan at coneharvesters.com>
wrote:

> On Wed, Jun 18, 2014 at 06:50:44PM +0100, George B. wrote:
> > I have configured a simple test notification using the Exec plugin. This
> works, however, the Time value in the notification message is changed into
> something strange (1.307) - can anyone suggest why this is happening?
>
> Maybe it's a coincidence, but if 1403113649 were in bytes, it would be
> exactly
> 1.307 GiB.  Maybe a conversion gone wrong somewhere?
>
> >>> Dan
>
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20140619/2254fdf3/attachment.html>


More information about the collectd mailing list