Windows timestamp rounding fails

#1

Hello,

This is my first topic so sorry if I am making a mistake posting this on Store category. I have found a weird behaviour about round_interval parameter on windows systems. This parameter is enabled with a value: “True” in both telegraf agent configuration but behaviour is different, two samples:

  • OS Windows:

2018-01-22 07:57:02 98.84
2018-01-22 07:56:52 99.06
2018-01-22 07:56:42 98.24

  • OS Linux

2018-01-22 07:58:20 97.70
2018-01-22 07:58:10 97.53
2018-01-22 07:58:00 97.73

On Linux, as you can see, timestamp values are rounding meanwhile for Windows is not, is there any known bug on windows systems to round unix timestamp? Using regular plugins to collect cpu data

Regards!