From 79d109a3863d6843d39916e5c95688c82117824e Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Mon, 28 Jan 2019 11:46:28 +0100 Subject: [PATCH] lib/config: Add omitempty to DeprecatedMinHomeDiskFreePct (fixes #5482) (#5484) --- lib/config/optionsconfiguration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/optionsconfiguration.go b/lib/config/optionsconfiguration.go index 297999487..0a5dae73d 100644 --- a/lib/config/optionsconfiguration.go +++ b/lib/config/optionsconfiguration.go @@ -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 {