store server status in a more compact format

This commit is contained in:
badaix 2019-11-01 18:48:50 +01:00
parent 4d7f411bdc
commit 017988f99e

View file

@ -121,7 +121,8 @@ void Config::save()
init();
std::ofstream ofs(filename_.c_str(), std::ofstream::out | std::ofstream::trunc);
json clients = {{"ConfigVersion", 2}, {"Groups", getGroups()}};
ofs << std::setw(4) << clients;
// ofs << std::setw(4) << clients;
ofs << clients;
ofs.close();
}