diff options
author | Oz Linden <oz@lindenlab.com> | 2013-05-10 10:56:40 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2013-05-10 10:56:40 -0400 |
commit | 4d22c32aa9ac42b4a720200386d68339e8656974 (patch) | |
tree | c84419f0f3ac44d2f64b7082c3c69c1fbec919d2 /indra/newview/llviewerstatsrecorder.cpp | |
parent | 73e6711268adb93025386ffb766055125f0d849e (diff) | |
parent | 33d9adfa9a07e0bf6f6ebd8213e843048ec92392 (diff) |
merge changes for 3.5.2-beta4
Diffstat (limited to 'indra/newview/llviewerstatsrecorder.cpp')
-rwxr-xr-x[-rw-r--r--] | indra/newview/llviewerstatsrecorder.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llviewerstatsrecorder.cpp b/indra/newview/llviewerstatsrecorder.cpp index 3ff2dfa4fe..f5a4737c59 100644..100755 --- a/indra/newview/llviewerstatsrecorder.cpp +++ b/indra/newview/llviewerstatsrecorder.cpp @@ -187,6 +187,7 @@ void LLViewerStatsRecorder::writeToLog( F32 interval ) << mObjectUpdateFailures << " update failures" << llendl; + U32 data_size; if (mObjectCacheFile == NULL) { mStartTime = LLTimer::getTotalSeconds(); @@ -216,10 +217,10 @@ void LLViewerStatsRecorder::writeToLog( F32 interval ) << "Texture Fetch bps\t" << "\n"; - size_t data_size = data_msg.str().size(); - if ( data_size != fwrite(data_msg.str().c_str(), 1, data_size, mObjectCacheFile )) + data_size = data_msg.str().size(); + if (fwrite(data_msg.str().c_str(), 1, data_size, mObjectCacheFile ) != data_size) { - llwarns << "Unable to write complete column headings to " << STATS_FILE_NAME << llendl; + llwarns << "failed to write full headers to " << STATS_FILE_NAME << llendl; } } else @@ -258,6 +259,7 @@ void LLViewerStatsRecorder::writeToLog( F32 interval ) { llwarns << "Unable to write complete column data to " << STATS_FILE_NAME << llendl; } + clearStats(); } |