cmd/syncthing, lib/config, lib/osutil: Lower process priority (fixes #4628)

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4675
This commit is contained in:
Jakob Borg
2018-01-15 17:11:14 +00:00
committed by Audrius Butkevicius
parent 838c182b5b
commit c554ffccc9
7 changed files with 142 additions and 0 deletions

View File

@@ -76,6 +76,7 @@ func TestDefaultValues(t *testing.T) {
KCPUpdateIntervalMs: 25,
KCPFastResend: false,
DefaultFolderPath: "~",
SetLowPriority: true,
}
cfg := New(device1)
@@ -224,6 +225,7 @@ func TestOverriddenValues(t *testing.T) {
KCPUpdateIntervalMs: 1000,
KCPFastResend: true,
DefaultFolderPath: "/media/syncthing",
SetLowPriority: false,
}
os.Unsetenv("STNOUPGRADE")