comparison base/StorageAdviser.cpp @ 192:900ac6667eab

...
author Chris Cannam
date Tue, 17 Oct 2006 18:54:04 +0000
parents 058a82e8bc3c
children 91fdc752e540
comparison
equal deleted inserted replaced
191:86766fef5467 192:900ac6667eab
35 int discFree = GetDiscSpaceMBAvailable(path.toLocal8Bit()); 35 int discFree = GetDiscSpaceMBAvailable(path.toLocal8Bit());
36 int memoryFree, memoryTotal; 36 int memoryFree, memoryTotal;
37 GetRealMemoryMBAvailable(memoryFree, memoryTotal); 37 GetRealMemoryMBAvailable(memoryFree, memoryTotal);
38 38
39 std::cerr << "Disc space: " << discFree << ", memory free: " << memoryFree << ", memory total: " << memoryTotal << std::endl; 39 std::cerr << "Disc space: " << discFree << ", memory free: " << memoryFree << ", memory total: " << memoryTotal << std::endl;
40
41 //!!! We have a potentially serious problem here if multiple
42 //recommendations are made in advance of any of the resulting
43 //allocations, as the allocations that have been recommended for
44 //won't be taken into account in subsequent recommendations.
40 45
41 enum StorageStatus { 46 enum StorageStatus {
42 Unknown, 47 Unknown,
43 Insufficient, 48 Insufficient,
44 Marginal, 49 Marginal,