lib/config: Add omitempty to DeprecatedMinHomeDiskFreePct (fixes #5482) (#5484)

This commit is contained in:
Simon Frei 2019-01-28 11:46:28 +01:00 committed by Jakob Borg
parent 75dcff0a0e
commit 79d109a386

View File

@ -58,7 +58,7 @@ type OptionsConfiguration struct {
DeprecatedUPnPRenewalM int `xml:"upnpRenewalMinutes,omitempty" json:"-"`
DeprecatedUPnPTimeoutS int `xml:"upnpTimeoutSeconds,omitempty" json:"-"`
DeprecatedRelayServers []string `xml:"relayServer,omitempty" json:"-"`
DeprecatedMinHomeDiskFreePct float64 `xml:"minHomeDiskFreePct" json:"-"`
DeprecatedMinHomeDiskFreePct float64 `xml:"minHomeDiskFreePct,omitempty" json:"-"`
}
func (orig OptionsConfiguration) Copy() OptionsConfiguration {