]> granicus.if.org Git - sysstat/commit
sadf: PCP: Fix illegal result timestamp error
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 7 Apr 2019 06:36:38 +0000 (08:36 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 7 Apr 2019 06:36:38 +0000 (08:36 +0200)
commit0a76e36d4f16adf6e1de971a18bff287eb45844f
treebbc88db6ca97c6e69deeb58808b3df4fa4a30eb0
parent8deb1e1fe5c4fe3bc772e4d6fad31e36dfbbe5f9
sadf: PCP: Fix illegal result timestamp error

pmiWrite() function (from the PCP API) has a very nasty impact on
mktime().
Once pmiWrite has been called, subsequent mktime() calls will no longer
give the same result using the same input data, resulting in timestamps
that can be wrong because associated with a different timezone.
This patch tries to fix that.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sadf_misc.c