History

Merge pull request #4381 from Atlante45/disk_cache

Disk cache tweaks

Brad Hefta-Gaub committed 11 years ago

Commit 21cd7e32 parents 375fa48 76903019 files · +259 −9Browse files

Showing the changes to interface/src/Application.cpp (1 of 9 files). Show all

Unified · Split

interface/src/Application.cpp+2−2
@@ -141,7 +141,7 @@ using namespace std; · 140 unmodified lines
141141 static unsigned STARFIELD_NUM_STARS = 50000;
142142 static unsigned STARFIELD_SEED = 1;
143143
144−const qint64 MAXIMUM_CACHE_SIZE = 10737418240; // 10GB
144+const qint64 MAXIMUM_CACHE_SIZE = 10 * BYTES_PER_GIGABYTES; // 10GB
145145
146146 static QTimer* locationUpdateTimer = NULL;
147147 static QTimer* balanceUpdateTimer = NULL;
@@ -445,7 +445,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 297 unmodified lines
445445 cache->setMaximumCacheSize(MAXIMUM_CACHE_SIZE);
446446 cache->setCacheDirectory(!cachePath.isEmpty() ? cachePath : "interfaceCache");
447447 networkAccessManager.setCache(cache);
448−
448+
449449 ResourceCache::setRequestLimit(3);
450450
451451 _window->setCentralWidget(_glWidget);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t