aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterabout.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:42 -0500
committerJacek Antonelli2008-08-15 23:45:42 -0500
commitce28e056c20bf2723f565bbf464b87781ec248a2 (patch)
treeef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llfloaterabout.cpp
parentSecond Life viewer sources 1.19.1.4b (diff)
downloadmeta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/newview/llfloaterabout.cpp')
-rw-r--r--linden/indra/newview/llfloaterabout.cpp19
1 files changed, 6 insertions, 13 deletions
diff --git a/linden/indra/newview/llfloaterabout.cpp b/linden/indra/newview/llfloaterabout.cpp
index ddedef4..8e55cf8 100644
--- a/linden/indra/newview/llfloaterabout.cpp
+++ b/linden/indra/newview/llfloaterabout.cpp
@@ -46,7 +46,7 @@
46#include "llviewerregion.h" 46#include "llviewerregion.h"
47#include "llversionviewer.h" 47#include "llversionviewer.h"
48#include "llviewerbuild.h" 48#include "llviewerbuild.h"
49#include "llvieweruictrlfactory.h" 49#include "lluictrlfactory.h"
50#include "llappviewer.h" 50#include "llappviewer.h"
51#include "llglheaders.h" 51#include "llglheaders.h"
52#include "llmediamanager.h" 52#include "llmediamanager.h"
@@ -70,7 +70,7 @@ LLFloaterAbout* LLFloaterAbout::sInstance = NULL;
70LLFloaterAbout::LLFloaterAbout() 70LLFloaterAbout::LLFloaterAbout()
71: LLFloater("floater_about", "FloaterAboutRect", "") 71: LLFloater("floater_about", "FloaterAboutRect", "")
72{ 72{
73 gUICtrlFactory->buildFloater(this, "floater_about.xml"); 73 LLUICtrlFactory::getInstance()->buildFloater(this, "floater_about.xml");
74 74
75 // Support for changing product name. 75 // Support for changing product name.
76 LLString title("About "); 76 LLString title("About ");
@@ -84,7 +84,7 @@ LLFloaterAbout::LLFloaterAbout()
84 + llformat(" %d.%d.%d (%d) %s %s (%s)", 84 + llformat(" %d.%d.%d (%d) %s %s (%s)",
85 LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, LL_VIEWER_BUILD, 85 LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, LL_VIEWER_BUILD,
86 __DATE__, __TIME__, 86 __DATE__, __TIME__,
87 gChannelName.c_str()); 87 gSavedSettings.getString("VersionChannelName").c_str());
88 support.append(version); 88 support.append(version);
89 support.append("\n\n"); 89 support.append("\n\n");
90 90
@@ -157,23 +157,16 @@ LLFloaterAbout::LLFloaterAbout()
157 } 157 }
158 } 158 }
159 159
160 if (gViewerStats 160 if (gPacketsIn > 0)
161 && gPacketsIn > 0)
162 { 161 {
163 LLString packet_loss = llformat("Packets Lost: %.0f/%.0f (%.1f%%)", 162 LLString packet_loss = llformat("Packets Lost: %.0f/%.0f (%.1f%%)",
164 gViewerStats->mPacketsLostStat.getCurrent(), 163 LLViewerStats::getInstance()->mPacketsLostStat.getCurrent(),
165 F32(gPacketsIn), 164 F32(gPacketsIn),
166 100.f*gViewerStats->mPacketsLostStat.getCurrent() / F32(gPacketsIn) ); 165 100.f*LLViewerStats::getInstance()->mPacketsLostStat.getCurrent() / F32(gPacketsIn) );
167 support.append(packet_loss); 166 support.append(packet_loss);
168 support.append("\n"); 167 support.append("\n");
169 } 168 }
170 169
171 // MD5 digest of executable
172 support.append("Viewer Digest: ");
173 char viewer_digest_string[UUID_STR_LENGTH]; /*Flawfinder: ignore*/
174 gViewerDigest.toString( viewer_digest_string );
175 support.append(viewer_digest_string);
176
177 // Fix views 170 // Fix views
178 childDisable("credits_editor"); 171 childDisable("credits_editor");
179 172