comparison base/StorageAdviser.cpp @ 173:058a82e8bc3c

...
author Chris Cannam
date Wed, 27 Sep 2006 20:52:48 +0000
parents b23eea68357e
children 900ac6667eab
comparison
equal deleted inserted replaced
172:a2a8a2b6653a 173:058a82e8bc3c
59 minmb > (memoryTotal / 10)) memoryStatus = Marginal; 59 minmb > (memoryTotal / 10)) memoryStatus = Marginal;
60 else memoryStatus = Sufficient; 60 else memoryStatus = Sufficient;
61 61
62 if (discFree == -1) discStatus = Unknown; 62 if (discFree == -1) discStatus = Unknown;
63 else if (minmb > (discFree * 3) / 4) discStatus = Insufficient; 63 else if (minmb > (discFree * 3) / 4) discStatus = Insufficient;
64 else if (maxmb > (discFree * 3) / 4) discStatus = Marginal; 64 else if (maxmb > (discFree / 4)) discStatus = Marginal;
65 else if (minmb > (discFree / 3)) discStatus = Marginal; 65 else if (minmb > (discFree / 10)) discStatus = Marginal;
66 else discStatus = Sufficient; 66 else discStatus = Sufficient;
67 67
68 std::cerr << "Memory status: " << memoryStatus << ", disc status " 68 std::cerr << "Memory status: " << memoryStatus << ", disc status "
69 << discStatus << std::endl; 69 << discStatus << std::endl;
70 70