Update max write cache size to 2048MB and set it to automatic by default (closes #148)

This commit is contained in:
Christophe Dumez
2012-10-07 19:14:53 +03:00
parent 6cf2f942e7
commit aeb5fa036c
3 changed files with 19 additions and 7 deletions

View File

@@ -927,11 +927,11 @@ public:
}
uint diskCacheSize() const {
return value(QString::fromUtf8("Preferences/Downloads/DiskCache"), 16).toUInt();
return value(QString::fromUtf8("Preferences/Downloads/DiskWriteCacheSize"), 0).toUInt();
}
void setDiskCacheSize(uint size) {
setValue(QString::fromUtf8("Preferences/Downloads/DiskCache"), size);
setValue(QString::fromUtf8("Preferences/Downloads/DiskWriteCacheSize"), size);
}
uint outgoingPortsMin() const {