summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorRichard Linden <none@none>2013-01-11 14:24:52 -0800
committerRichard Linden <none@none>2013-01-11 14:24:52 -0800
commit85df1df3c34115efa0e18d116f7923b88ec1dadf (patch)
tree684f2b92e4610c3d2eb09ddb71bec90f518bc834 /indra/newview
parentdd54893bcf50f41e5c678b6ca67b646284b94fca (diff)
SH-3406 WIP convert fast timers to lltrace system
gcc 4.1 fixes
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewerstatsrecorder.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llviewerstatsrecorder.cpp b/indra/newview/llviewerstatsrecorder.cpp
index 91e485d01b..cdb7bde123 100644
--- a/indra/newview/llviewerstatsrecorder.cpp
+++ b/indra/newview/llviewerstatsrecorder.cpp
@@ -216,7 +216,10 @@ void LLViewerStatsRecorder::writeToLog( F32 interval )
<< "Texture Fetch bps\t"
<< "\n";
- fwrite(data_msg.str().c_str(), 1, data_msg.str().size(), mObjectCacheFile );
+ if (fwrite(data_msg.str().c_str(), 1, data_msg.str().size(), mObjectCacheFile ) != data_msg.str().size())
+ {
+ llwarns << "Failed to write log file." << llendl;
+ }
}
else
{
@@ -249,7 +252,10 @@ void LLViewerStatsRecorder::writeToLog( F32 interval )
<< "\t" << (mTextureFetchSize * 8 / delta_time)
<< "\n";
- fwrite(data_msg.str().c_str(), 1, data_msg.str().size(), mObjectCacheFile );
+ if (fwrite(data_msg.str().c_str(), 1, data_msg.str().size(), mObjectCacheFile ) != data_msg.str().size())
+ {
+ llwarns << "Failed to write log file." << llendl;
+ }
clearStats();
}