aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/sledjchisl
diff options
context:
space:
mode:
Diffstat (limited to 'src/sledjchisl')
-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);