Mercurial > hg > svcore
comparison base/StorageAdviser.cpp @ 334:aa8dbac62024
* Pass StorageAdviser::Criteria into FFTModel constructor etc
author | Chris Cannam |
---|---|
date | Sun, 11 Nov 2007 20:31:12 +0000 |
parents | dc46851837d6 |
children | 02d2ad95ea52 94fc0591ea43 |
comparison
equal
deleted
inserted
replaced
333:1afaf98dbf11 | 334:aa8dbac62024 |
---|---|
49 memoryFree -= m_memoryPlanned / 1024 + 1; | 49 memoryFree -= m_memoryPlanned / 1024 + 1; |
50 } else if (memoryFree > 0) { // can also be -1 for unknown | 50 } else if (memoryFree > 0) { // can also be -1 for unknown |
51 memoryFree = 0; | 51 memoryFree = 0; |
52 } | 52 } |
53 | 53 |
54 std::cerr << "Disc space: " << discFree << ", memory free: " << memoryFree << ", memory total: " << memoryTotal << std::endl; | 54 std::cerr << "Disc space: " << discFree << ", memory free: " << memoryFree << ", memory total: " << memoryTotal << ", min " << minimumSize << ", max " << maximumSize << std::endl; |
55 | 55 |
56 //!!! We have a potentially serious problem here if multiple | 56 //!!! We have a potentially serious problem here if multiple |
57 //recommendations are made in advance of any of the resulting | 57 //recommendations are made in advance of any of the resulting |
58 //allocations, as the allocations that have been recommended for | 58 //allocations, as the allocations that have been recommended for |
59 //won't be taken into account in subsequent recommendations. | 59 //won't be taken into account in subsequent recommendations. |