mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-15 07:35:41 +02:00
store server status in a more compact format
This commit is contained in:
parent
4d7f411bdc
commit
017988f99e
1 changed files with 2 additions and 1 deletions
|
@ -121,7 +121,8 @@ void Config::save()
|
||||||
init();
|
init();
|
||||||
std::ofstream ofs(filename_.c_str(), std::ofstream::out | std::ofstream::trunc);
|
std::ofstream ofs(filename_.c_str(), std::ofstream::out | std::ofstream::trunc);
|
||||||
json clients = {{"ConfigVersion", 2}, {"Groups", getGroups()}};
|
json clients = {{"ConfigVersion", 2}, {"Groups", getGroups()}};
|
||||||
ofs << std::setw(4) << clients;
|
// ofs << std::setw(4) << clients;
|
||||||
|
ofs << clients;
|
||||||
ofs.close();
|
ofs.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue