comparison base/StorageAdviser.cpp @ 259:dc46851837d6

* Fix many compile warnings, remove some debug output
author Chris Cannam
date Mon, 30 Apr 2007 13:36:23 +0000
parents 05154c7bb90b
children aa8dbac62024
comparison
equal deleted inserted replaced
258:96a6dd889c68 259:dc46851837d6
165 void 165 void
166 StorageAdviser::notifyPlannedAllocation(AllocationArea area, int size) 166 StorageAdviser::notifyPlannedAllocation(AllocationArea area, int size)
167 { 167 {
168 if (area == MemoryAllocation) m_memoryPlanned += size; 168 if (area == MemoryAllocation) m_memoryPlanned += size;
169 else if (area == DiscAllocation) m_discPlanned += size; 169 else if (area == DiscAllocation) m_discPlanned += size;
170 std::cerr << "storage planned up: memory: " << m_memoryPlanned << ", disc " 170 // std::cerr << "storage planned up: memory: " << m_memoryPlanned << ", disc "
171 << m_discPlanned << std::endl; 171 // << m_discPlanned << std::endl;
172 } 172 }
173 173
174 void 174 void
175 StorageAdviser::notifyDoneAllocation(AllocationArea area, int size) 175 StorageAdviser::notifyDoneAllocation(AllocationArea area, int size)
176 { 176 {
179 else m_memoryPlanned = 0; 179 else m_memoryPlanned = 0;
180 } else if (area == DiscAllocation) { 180 } else if (area == DiscAllocation) {
181 if (m_discPlanned > size) m_discPlanned -= size; 181 if (m_discPlanned > size) m_discPlanned -= size;
182 else m_discPlanned = 0; 182 else m_discPlanned = 0;
183 } 183 }
184 std::cerr << "storage planned down: memory: " << m_memoryPlanned << ", disc " 184 // std::cerr << "storage planned down: memory: " << m_memoryPlanned << ", disc "
185 << m_discPlanned << std::endl; 185 // << m_discPlanned << std::endl;
186 } 186 }
187 187