aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2020-05-11 00:15:13 +1000
committeronefang2020-05-11 00:15:13 +1000
commitf67fb6345ba4a5c857e359264bf078ccf8690374 (patch)
tree191bd3c2174f63b6f553e4e6cd662b15f36cce8f
parentTypo-- (diff)
downloadopensim-SC-f67fb6345ba4a5c857e359264bf078ccf8690374.zip
opensim-SC-f67fb6345ba4a5c857e359264bf078ccf8690374.tar.gz
opensim-SC-f67fb6345ba4a5c857e359264bf078ccf8690374.tar.bz2
opensim-SC-f67fb6345ba4a5c857e359264bf078ccf8690374.tar.xz
Stop reporting silly numbers of locals.
-rw-r--r--src/sledjchisl/sledjchisl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index ca4df6a..176d677 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -2127,7 +2127,10 @@ gridStats *getStats(MYSQL *db, gridStats *stats)
2127 2127
2128 // Collect stats about members. 2128 // Collect stats about members.
2129 replaceLong(stats->stats, "hgers", HGin); 2129 replaceLong(stats->stats, "hgers", HGin);
2130 replaceLong(stats->stats, "inworld", locIn - HGin); 2130 if (locIn >= HGin) // Does OpenSim have too many ghosts?
2131 replaceLong(stats->stats, "inworld", locIn - HGin);
2132 else
2133 replaceLong(stats->stats, "inworld", 0);
2131 tmp = xmprintf("GridExternalName != '%s'", stats->stats->getstr(stats->stats, "uri", false)); 2134 tmp = xmprintf("GridExternalName != '%s'", stats->stats->getstr(stats->stats, "uri", false));
2132 replaceLong(stats->stats, "outworld", dbCount(db, "hg_traveling_data", tmp)); 2135 replaceLong(stats->stats, "outworld", dbCount(db, "hg_traveling_data", tmp));
2133 free(tmp); 2136 free(tmp);