Fix atomic string handling for JSON output

This commit is contained in:
Dane Everitt
2020-11-06 22:22:33 -08:00
parent 944d381778
commit 4b17ac4f1c
3 changed files with 22 additions and 16 deletions

View File

@@ -18,7 +18,7 @@ type ResourceUsage struct {
environment.Stats
// The current server status.
State system.AtomicString `json:"state"`
State *system.AtomicString `json:"state" default:"{}"`
// The current disk space being used by the server. This value is not guaranteed to be accurate
// at all times. It is "manually" set whenever server.Proc() is called. This is kind of just a