]> granicus.if.org Git - icinga2/commit
compatido: replace gettimeofday with Utility::GetTime()
authorMichael Friedrich <michael.friedrich@gmail.com>
Thu, 27 Sep 2012 20:12:59 +0000 (22:12 +0200)
committerMichael Friedrich <michael.friedrich@gmail.com>
Thu, 27 Sep 2012 20:12:59 +0000 (22:12 +0200)
commitfaf741e3b9f8f43034c785ebf0f7023821be829a
treebc75e60e0c95b5cb31eba0b3224eb1788c23805b
parentedc2d74a7028b6f9651284e6e55bbbb5adce05ef
compatido: replace gettimeofday with Utility::GetTime()

* fixes build on windows
* only timestamp (4) of idomod requires seconds.useconds as output,
which needs proper formatting within a stringstream -
std::precision(17) is required.
* all other timestamps are just unix seconds, so we require static casts
to integer here
components/compatido/compatidocomponent.cpp