aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorArmin Weatherwax2011-03-22 02:32:25 +0100
committerArmin Weatherwax2011-03-22 11:42:23 +0100
commitff19d02bdbc8179cf413d5060e04bc627c2bea26 (patch)
treeb217cb11feea1e3eefc50beb00868d9752bfe648 /linden
parentallow interaction with parcel web media (diff)
downloadmeta-impy-ff19d02bdbc8179cf413d5060e04bc627c2bea26.zip
meta-impy-ff19d02bdbc8179cf413d5060e04bc627c2bea26.tar.gz
meta-impy-ff19d02bdbc8179cf413d5060e04bc627c2bea26.tar.bz2
meta-impy-ff19d02bdbc8179cf413d5060e04bc627c2bea26.tar.xz
Don't report crashes if the grid where the crash happened is different from the grid logging in.
Because otherwise crash statistics are wrong. See viewers with higher crash than disconnect rate.
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/app_settings/settings.xml11
-rw-r--r--linden/indra/newview/llstartup.cpp23
2 files changed, 32 insertions, 2 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index c381d99..315670c 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -677,6 +677,17 @@
677 <key>Value</key> 677 <key>Value</key>
678 <string>Random</string> 678 <string>Random</string>
679 </map> 679 </map>
680 <key>LastConnectedGrid</key>
681 <map>
682 <key>Comment</key>
683 <string>Last grid actually connected to</string>
684 <key>Persist</key>
685 <integer>1</integer>
686 <key>Type</key>
687 <string>String</string>
688 <key>Value</key>
689 <string />
690 </map>
680 <key>LastSelectedGrid</key> 691 <key>LastSelectedGrid</key>
681 <map> 692 <map>
682 <key>Comment</key> 693 <key>Comment</key>
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index c9cdc8f..bcac095 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -1243,6 +1243,20 @@ bool idle_startup()
1243 hashed_mac.finalize(); 1243 hashed_mac.finalize();
1244 hashed_mac.hex_digest(hashed_mac_string); 1244 hashed_mac.hex_digest(hashed_mac_string);
1245 1245
1246 // Don't report crashes if the grid we crashed in
1247 // is different from the grid we log in
1248 eLastExecEvent last_exec_event = LAST_EXEC_NORMAL;
1249 {
1250 std::string current_grid = gHippoGridManager->getCurrentGrid()->getGridNick();
1251 std::string last_grid = gSavedSettings.getString("LastConnectedGrid");
1252 LL_DEBUGS("AppInit") << "current grid: " << current_grid
1253 << " Last Connected Grid: " << last_grid << LL_ENDL;
1254 if( last_grid == current_grid )
1255 {
1256 last_exec_event = gLastExecEvent;
1257 }
1258 }
1259
1246 // TODO if statement here to use web_login_key 1260 // TODO if statement here to use web_login_key
1247 if(web_login_key.isNull()){ 1261 if(web_login_key.isNull()){
1248 sAuthUriNum = llclamp(sAuthUriNum, 0, (S32)sAuthUris.size()-1); 1262 sAuthUriNum = llclamp(sAuthUriNum, 0, (S32)sAuthUris.size()-1);
@@ -1257,7 +1271,7 @@ bool idle_startup()
1257 gSkipOptionalUpdate, 1271 gSkipOptionalUpdate,
1258 gAcceptTOS, 1272 gAcceptTOS,
1259 gAcceptCriticalMessage, 1273 gAcceptCriticalMessage,
1260 gLastExecEvent, 1274 last_exec_event,
1261 requested_options, 1275 requested_options,
1262 hashed_mac_string, 1276 hashed_mac_string,
1263 LLAppViewer::instance()->getSerialNumber()); 1277 LLAppViewer::instance()->getSerialNumber());
@@ -1272,7 +1286,7 @@ bool idle_startup()
1272 gSkipOptionalUpdate, 1286 gSkipOptionalUpdate,
1273 gAcceptTOS, 1287 gAcceptTOS,
1274 gAcceptCriticalMessage, 1288 gAcceptCriticalMessage,
1275 gLastExecEvent, 1289 last_exec_event,
1276 requested_options, 1290 requested_options,
1277 hashed_mac_string, 1291 hashed_mac_string,
1278 LLAppViewer::instance()->getSerialNumber()); 1292 LLAppViewer::instance()->getSerialNumber());
@@ -1510,6 +1524,11 @@ bool idle_startup()
1510 1524
1511 if(successful_login) 1525 if(successful_login)
1512 { 1526 {
1527 {
1528 std::string current_grid = gHippoGridManager->getConnectedGrid()->getGridNick();
1529 gSavedSettings.setString("LastConnectedGrid", current_grid);
1530 }
1531
1513 std::string text; 1532 std::string text;
1514 text = LLUserAuth::getInstance()->getResponse("udp_blacklist"); 1533 text = LLUserAuth::getInstance()->getResponse("udp_blacklist");
1515 if(!text.empty()) 1534 if(!text.empty())