summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorRichard Linden <none@none>2013-08-26 18:00:24 -0700
committerRichard Linden <none@none>2013-08-26 18:00:24 -0700
commit8535b87544cc2e71896716a4cd1c3c2445ff4af0 (patch)
treef37bc39df9f6ddf30533a2dfa6f294ebda0a4b41 /indra/newview
parent662d6a17712fbba5cea0d9cf20f5a2f32e2dd537 (diff)
removed some unecessary template parameters from LLUnit member functions
forced unit conversion code to inline unit conversion now no longer converts all the way to base and back, but tries to find equivalent units as early as possible fixed another llinfos instance scene monitor now outputs n/a for invalid samples
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llscenemonitor.cpp31
-rwxr-xr-xindra/newview/llviewermessage.cpp4
2 files changed, 27 insertions, 8 deletions
diff --git a/indra/newview/llscenemonitor.cpp b/indra/newview/llscenemonitor.cpp
index 7fafabb493..57d58a9d4e 100644
--- a/indra/newview/llscenemonitor.cpp
+++ b/indra/newview/llscenemonitor.cpp
@@ -565,8 +565,9 @@ void LLSceneMonitor::dumpToFile(std::string file_name)
for (S32 frame = 1; frame <= frame_count; frame++)
{
- samples += scene_load_recording.getPrevRecording(frame_count - frame).getSampleCount(*it);
- row << ", " << scene_load_recording.getPrevRecording(frame_count - frame).getSum(*it);
+ Recording& recording = scene_load_recording.getPrevRecording(frame_count - frame);
+ samples += recording.getSampleCount(*it);
+ row << ", " << recording.getSum(*it);
}
row << '\n';
@@ -597,8 +598,17 @@ void LLSceneMonitor::dumpToFile(std::string file_name)
for (S32 frame = 1; frame <= frame_count; frame++)
{
- samples += scene_load_recording.getPrevRecording(frame_count - frame).getSampleCount(*it);
- row << ", " << scene_load_recording.getPrevRecording(frame_count - frame).getMean(*it);
+ Recording& recording = scene_load_recording.getPrevRecording(frame_count - frame);
+ samples += recording.getSampleCount(*it);
+ F64 mean = recording.getMean(*it);
+ if (llisnan(mean))
+ {
+ row << ", n/a";
+ }
+ else
+ {
+ row << ", " << mean;
+ }
}
row << '\n';
@@ -629,8 +639,17 @@ void LLSceneMonitor::dumpToFile(std::string file_name)
for (S32 frame = 1; frame <= frame_count; frame++)
{
- samples += scene_load_recording.getPrevRecording(frame_count - frame).getSampleCount(*it);
- row << ", " << scene_load_recording.getPrevRecording(frame_count - frame).getMean(*it);
+ Recording& recording = scene_load_recording.getPrevRecording(frame_count - frame);
+ samples += recording.getSampleCount(*it);
+ F64 mean = recording.getMean(*it);
+ if (llisnan(mean))
+ {
+ row << ", n/a";
+ }
+ else
+ {
+ row << ", " << mean;
+ }
}
row << '\n';
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index b4ed2adb07..7de8e1ff12 100755
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -7219,10 +7219,10 @@ void process_script_teleport_request(LLMessageSystem* msg, void**)
LLFloaterWorldMap* instance = LLFloaterWorldMap::getInstance();
if(instance)
{
- llinfos << "Object named " << object_name
+ LL_INFOS() << "Object named " << object_name
<< " is offering TP to region "
<< sim_name << " position " << pos
- << llendl;
+ << LL_ENDL;
instance->trackURL(sim_name, (S32)pos.mV[VX], (S32)pos.mV[VY], (S32)pos.mV[VZ]);
LLFloaterReg::showInstance("world_map", "center");