File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -618,18 +618,19 @@ void State::dumpStatus(Connection & conn)
618
618
}
619
619
620
620
{
621
- auto jobsets_json = statusJson[ " jobsets " ] = json::object ();
621
+ auto jobsets_json = json::object ();
622
622
auto jobsets_ (jobsets.lock ());
623
623
for (auto & jobset : *jobsets_) {
624
624
jobsets_json[jobset.first .first + " :" + jobset.first .second ] = {
625
625
{" shareUsed" , jobset.second ->shareUsed ()},
626
626
{" seconds" , jobset.second ->getSeconds ()},
627
627
};
628
628
}
629
+ statusJson[" jobsets" ] = jobsets_json;
629
630
}
630
631
631
632
{
632
- auto machineTypesJson = statusJson[ " machineTypes " ] = json::object ();
633
+ auto machineTypesJson = json::object ();
633
634
auto machineTypes_ (machineTypes.lock ());
634
635
for (auto & i : *machineTypes_) {
635
636
auto machineTypeJson = machineTypesJson[i.first ] = {
@@ -642,6 +643,7 @@ void State::dumpStatus(Connection & conn)
642
643
if (i.second .running == 0 )
643
644
machineTypeJson[" lastActive" ] = std::chrono::system_clock::to_time_t (i.second .lastActive );
644
645
}
646
+ statusJson[" machineTypes" ] = machineTypesJson;
645
647
}
646
648
647
649
auto store = getDestStore ();
You can’t perform that action at this time.
0 commit comments