mirror of https://github.com/Icinga/icinga2.git
parent
438e6dcd09
commit
f07fb97264
|
@ -25,6 +25,7 @@
|
||||||
#include "base/exception.hpp"
|
#include "base/exception.hpp"
|
||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <iomanip>
|
||||||
|
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
|
|
||||||
|
@ -99,7 +100,7 @@ bool ApiListener::UpdateConfigDir(const Dictionary::Ptr& oldConfig, const Dictio
|
||||||
String tsPath = configDir + "/.timestamp";
|
String tsPath = configDir + "/.timestamp";
|
||||||
if (!Utility::PathExists(tsPath)) {
|
if (!Utility::PathExists(tsPath)) {
|
||||||
std::ofstream fp(tsPath.CStr(), std::ofstream::out | std::ostream::trunc);
|
std::ofstream fp(tsPath.CStr(), std::ofstream::out | std::ostream::trunc);
|
||||||
fp << Utility::GetTime();
|
fp << std::fixed << Utility::GetTime();
|
||||||
fp.close();
|
fp.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue