Index: sources/storage/Logger.h =================================================================== diff -u -r86e9dfbff50cb7e16fd94c16c1c818cef3b47eac -r3a528c6f3fce8132de2791b55d3227e715d68898 --- sources/storage/Logger.h (.../Logger.h) (revision 86e9dfbff50cb7e16fd94c16c1c818cef3b47eac) +++ sources/storage/Logger.h (.../Logger.h) (revision 3a528c6f3fce8132de2791b55d3227e715d68898) @@ -122,24 +122,20 @@ { LogType::eLogTrtmt, ".log" }, }; - // be careful when defining these percentages - // 1 - Since now both the Log and Datum are in the same place and file they have same percentage. - // if separated then the percentage has to be separated - // 2 - the total in _logTypeExpiryDay is not 100 and it has to be summed up with Storage::Available_Space_Percent. - // so it is 50% for Event/Datum + 15% Service + 35% free = 100% total - // If the available SD-Card size is < Storage::Available_Space_Percent( 15 ) the remove logger will remove any of log types to retain percentage for each (50 for log, 15 for servc) - // The deletion will continue to get 35% free space, as has been calculated above. + // !!!!!!!!!! IMPORTANT !!!!!!!!!! + // be careful with these percentages + // please refer to the Storage namespace. const QHash _logTypeMaxUsageLimit { #ifdef MIXED_EVENT_DATUM - { LogType::eLogEvent, 50 }, // in percent - { LogType::eLogDatum, 50 }, // in percent + { LogType::eLogEvent, Storage::Log_Max_Allowable_AppED_Space_Percent }, + { LogType::eLogDatum, Storage::Log_Max_Allowable_AppED_Space_Percent }, #else - { LogType::eLogEvent, 25 }, // in percent - { LogType::eLogDatum, 25 }, // in percent + { LogType::eLogEvent, Storage::Log_Max_Allowable_Event_Space_Percent }, + { LogType::eLogDatum, Storage::Log_Max_Allowable_Datum_Space_Percent }, #endif - { LogType::eLogDebug, 15 }, // in percent + { LogType::eLogDebug, Storage::Log_Max_Allowable_Debug_Space_Percent }, // Not Sure yet so commented out in the remove. - { LogType::eLogTrtmt, 100}, // in percent // No Remove for now + { LogType::eLogTrtmt, Storage::Log_Max_Allowable_Trtmt_Space_Percent }, }; const char *_dateFormat = "yyyy_MM_dd" ; // date used in the file name