Skip to content
Snippets Groups Projects
Commit e247336a authored by Oz Linden's avatar Oz Linden
Browse files

fix Linux warning/error

parent 7a3a74b3
No related branches found
No related tags found
No related merge requests found
...@@ -216,7 +216,11 @@ void LLViewerStatsRecorder::writeToLog( F32 interval ) ...@@ -216,7 +216,11 @@ void LLViewerStatsRecorder::writeToLog( F32 interval )
<< "Texture Fetch bps\t" << "Texture Fetch bps\t"
<< "\n"; << "\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 else
{ {
...@@ -249,7 +253,12 @@ void LLViewerStatsRecorder::writeToLog( F32 interval ) ...@@ -249,7 +253,12 @@ void LLViewerStatsRecorder::writeToLog( F32 interval )
<< "\t" << (mTextureFetchSize * 8 / delta_time) << "\t" << (mTextureFetchSize * 8 / delta_time)
<< "\n"; << "\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(); clearStats();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment