summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerstatsrecorder.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2013-03-04 16:59:39 -0500
committerOz Linden <oz@lindenlab.com>2013-03-04 16:59:39 -0500
commitfd6147cdb625329ef9953861ae6f1351a533a2ae (patch)
tree69de1ef717ac56bba95cea5595bf19a61c1a53cc /indra/newview/llviewerstatsrecorder.cpp
parent90536f6cdf7fc6039deefb9c528347fa54111af5 (diff)
parente247336a03ba25eaacaec3ec0cf6665daba69dfc (diff)
merge changes for grouping materials requests
Diffstat (limited to 'indra/newview/llviewerstatsrecorder.cpp')
-rw-r--r--indra/newview/llviewerstatsrecorder.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/indra/newview/llviewerstatsrecorder.cpp b/indra/newview/llviewerstatsrecorder.cpp
index 91e485d01b..97ca08f694 100644
--- a/indra/newview/llviewerstatsrecorder.cpp
+++ b/indra/newview/llviewerstatsrecorder.cpp
@@ -216,7 +216,11 @@ void LLViewerStatsRecorder::writeToLog( F32 interval )
<< "Texture Fetch bps\t"
<< "\n";
- fwrite(data_msg.str().c_str(), 1, data_msg.str().size(), mObjectCacheFile );
+ size_t data_size = data_msg.str().size();
+ if ( data_size != fwrite(data_msg.str().c_str(), 1, data_size, mObjectCacheFile ))
+ {
+ llwarns << "Unable to write complete column headings to " << STATS_FILE_NAME << llendl;
+ }
}
else
{
@@ -249,7 +253,12 @@ void LLViewerStatsRecorder::writeToLog( F32 interval )
<< "\t" << (mTextureFetchSize * 8 / delta_time)
<< "\n";
- fwrite(data_msg.str().c_str(), 1, data_msg.str().size(), mObjectCacheFile );
+ size_t data_size = data_msg.str().size();
+ if ( data_size != fwrite(data_msg.str().c_str(), 1, data_size, mObjectCacheFile ))
+ {
+ llwarns << "Unable to write complete stats record to " << STATS_FILE_NAME << llendl;
+ }
+ fwrite(data_msg.str().c_str(), 1, data_size, mObjectCacheFile );
clearStats();
}