We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b6296e commit 9403a58Copy full SHA for 9403a58
src/commons/QueryIndexer.cpp
@@ -22,8 +22,8 @@ QueryIndexer::QueryIndexer(const LocalParameters & par) {
22
}
23
24
void QueryIndexer::setAvailableRam() {
25
- availableRam = (((size_t) maxRam * 1024 * 1024 * 1024) * 85) / 100
26
- - ((size_t) 128 * 1024 * 1024 * threads);
+ availableRam = ((size_t) maxRam * (size_t) 1024 * 1024 * 1024)
+ - ((size_t) 128 * 1024 * 1024 * (size_t) threads);
27
// std::cout << "availableRam: " << availableRam << "\n";
28
29
0 commit comments