From d98f0844bd9d3dc6740d45960a65dd4e8f11e9ec Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Tue, 16 Sep 2008 12:20:16 -0500 Subject: Skip "N files scheduled for deletion" message when nothing scheduled. --- ChangeLog.txt | 5 +++++ linden/indra/newview/lltexturecache.cpp | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index da78f78..4b154b2 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,8 @@ +2008-09-16 Jacek Antonelli + + * linden/indra/newview/lltexturecache.cpp (purgeTextureFilesTimeSliced): + Skip "N files scheduled for deletion" message when nothing scheduled. + 2008-09-16 Nicholaz Beresford * linden/indra/newview/lltexturecache.cpp: diff --git a/linden/indra/newview/lltexturecache.cpp b/linden/indra/newview/lltexturecache.cpp index 0fbb3d9..ac956e2 100644 --- a/linden/indra/newview/lltexturecache.cpp +++ b/linden/indra/newview/lltexturecache.cpp @@ -1315,7 +1315,10 @@ void LLTextureCache::purgeTextureFilesTimeSliced(BOOL force_all) LLTimer timer; S32 howmany = 0; - llinfos << "TEXTURE CACHE: " << mFilesToDelete.size() << " files scheduled for deletion" << llendl; + if (mFilesToDelete.size() > 0) + { + llinfos << "TEXTURE CACHE: " << mFilesToDelete.size() << " files scheduled for deletion" << llendl; + } for (LLTextureCache::filename_list_t::iterator iter = mFilesToDelete.begin(); iter!=mFilesToDelete.end(); ) { -- cgit v1.1