Tweak the database block cache size, and add config for it

This commit is contained in:
Jakob Borg
2015-05-11 09:01:09 +02:00
parent 179c9ee8cc
commit c2f2d8771f
4 changed files with 16 additions and 13 deletions

View File

@@ -52,6 +52,7 @@ func TestDefaultValues(t *testing.T) {
ProgressUpdateIntervalS: 5,
SymlinksEnabled: true,
LimitBandwidthInLan: false,
DatabaseBlockCacheMiB: 0,
}
cfg := New(device1)
@@ -158,6 +159,7 @@ func TestOverriddenValues(t *testing.T) {
ProgressUpdateIntervalS: 10,
SymlinksEnabled: false,
LimitBandwidthInLan: true,
DatabaseBlockCacheMiB: 42,
}
cfg, err := Load("testdata/overridenvalues.xml", device1)