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

This commit is contained in:
Simon Frei authored and Jakob Borg committed 2019-01-28 11:46:28 +01:00
1 parent 75dcff0a0e
commit 79d109a386
1 file changed
+1 -1
+1 -1
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 {