Hi
during the compilation of the Windows (64-bit) Agent, the compiler
issued a warning about truncation of value.
This is quite right, but will happen after Jan. 2038, only.
But still, this fix will solve it and there should be no portability
problems with my change, because a few lines above the change,
the type time_t is used, too.
It's a trivial change. Just replaced int by time_t.
Include it in the next release or, at least, the one prior to Jan. 2038 
Regards
Norbert.
during the compilation of the Windows (64-bit) Agent, the compiler
issued a warning about truncation of value.
This is quite right, but will happen after Jan. 2038, only.
But still, this fix will solve it and there should be no portability
problems with my change, because a few lines above the change,
the type time_t is used, too.
It's a trivial change. Just replaced int by time_t.
Code:
--- diskdevices.c.orig 2009-03-06 11:00:04.000000000 +0100
+++ diskdevices.c 2009-03-18 13:30:00.583680000 +0100
@@ -26,7 +26,7 @@
zbx_uint64_t r_oper, zbx_uint64_t r_sect, zbx_uint64_t w_oper, zbx_uint64_t w_sect)
{
register int i;
- int clock[ZBX_AVGMAX], index[ZBX_AVGMAX];
+ time_t clock[ZBX_AVGMAX], index[ZBX_AVGMAX];
assert(device);

Regards
Norbert.
Comment