Skip to content

Commit 46a324c

Browse files
committed
viewer#2921 - merge fix
1 parent c968344 commit 46a324c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

indra/newview/llviewerstats.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,9 @@ void send_viewer_stats(bool include_preferences)
535535

536536
LLSD capture_viewer_stats(bool include_preferences)
537537
{
538-
LLViewerStats& vstats{ LLViewerStats& vs = LLViewerStats::instance() };
539-
vstats;
540-
vs.getRecording().pause();
538+
LLViewerStats& vstats = LLViewerStats::instance();
539+
540+
vstats.getRecording().pause();
541541
LL::scope_exit cleanup([&vstats]{ vstats.getRecording().resume(); });
542542

543543
LLSD body;
@@ -563,13 +563,13 @@ LLSD capture_viewer_stats(bool include_preferences)
563563

564564
agent["start_time"] = S32(ltime - S32(run_time));
565565

566-
agent["fg_frame_stats"] = vs.mForegroundFrameStats.asLLSD();
567-
agent["fg_frame_stats"]["ofr"] = ofr(vs.mForegroundFrameStats);
568-
agent["fg_frame_stats"]["fps"] = fps(vs.mForegroundFrameStats);
566+
agent["fg_frame_stats"] = vstats.mForegroundFrameStats.asLLSD();
567+
agent["fg_frame_stats"]["ofr"] = ofr(vstats.mForegroundFrameStats);
568+
agent["fg_frame_stats"]["fps"] = fps(vstats.mForegroundFrameStats);
569569

570-
agent["bg_frame_stats"] = vs.mBackgroundFrameStats.asLLSD();
571-
agent["bg_frame_stats"]["ofr"] = ofr(vs.mBackgroundFrameStats);
572-
agent["bg_frame_stats"]["fps"] = fps(vs.mBackgroundFrameStats);
570+
agent["bg_frame_stats"] = vstats.mBackgroundFrameStats.asLLSD();
571+
agent["bg_frame_stats"]["ofr"] = ofr(vstats.mBackgroundFrameStats);
572+
agent["bg_frame_stats"]["fps"] = fps(vstats.mBackgroundFrameStats);
573573

574574
// report time the viewer has spent in the foreground
575575
agent["foreground_time"] = gForegroundTime.getElapsedTimeF32();

0 commit comments

Comments
 (0)