Skip to content

Commit

Permalink
Setting: bug fix, size is in GiB
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Jan 3, 2018
1 parent d4989eb commit e42097a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Engine/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2170,7 +2170,7 @@ SettingsPrivate::initializeKnobsCaching()

// The disk should at least allow storage of 1000 tiles accross each bucket
std::size_t cacheMinSize = NATRON_TILE_SIZE_BYTES;
cacheMinSize = cacheMinSize * 1024 * 256;
cacheMinSize = (cacheMinSize * 1024 * 256) / (1024 * 1024 * 1024);
_maxDiskCacheSizeGb->setRange(cacheMinSize, INT_MAX);
_maxDiskCacheSizeGb->setHintToolTip( tr("The maximum Disk size that may be used by the Cache (in GiB)") );
_maxDiskCacheSizeGb->setDefaultValue(8);
Expand Down

0 comments on commit e42097a

Please sign in to comment.