webengine/osswebengine/cache/src/HttpCacheEvictionHandler.cpp
changeset 11 c8a366e56285
parent 10 a359256acfc6
equal deleted inserted replaced
10:a359256acfc6 11:c8a366e56285
   319             else {
   319             else {
   320                 HttpCacheUtil::WriteLog( 0, _L("CHttpCacheEvictionHandler::EvictL : NO entries found in bucket ="), i);
   320                 HttpCacheUtil::WriteLog( 0, _L("CHttpCacheEvictionHandler::EvictL : NO entries found in bucket ="), i);
   321             }
   321             }
   322 #endif
   322 #endif
   323             // evacuate nonactive entries only
   323             // evacuate nonactive entries only
   324             if( entry && entry->State() == CHttpCacheEntry::ECacheComplete )
   324             if( entry && entry->State() == CHttpCacheEntry::ECacheComplete && !entry->BodyDataPartiallyWritten())
   325                 {
   325                 {
   326                 // watch out for 32 bit. it might overflow secInt.
   326                 // watch out for 32 bit. it might overflow secInt.
   327                 currTime.SecondsFrom( entry->LastAccessed(), secInt );
   327                 currTime.SecondsFrom( entry->LastAccessed(), secInt );
   328 
   328 
   329                 TInt val( secInt.Int() * entry->BodySize() / entry->Ref() );
   329                 TInt val( secInt.Int() * entry->BodySize() / entry->Ref() );