From f67fb6345ba4a5c857e359264bf078ccf8690374 Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 11 May 2020 00:15:13 +1000 Subject: Stop reporting silly numbers of locals. --- src/sledjchisl/sledjchisl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/sledjchisl') 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) // Collect stats about members. replaceLong(stats->stats, "hgers", HGin); - replaceLong(stats->stats, "inworld", locIn - HGin); + if (locIn >= HGin) // Does OpenSim have too many ghosts? + replaceLong(stats->stats, "inworld", locIn - HGin); + else + replaceLong(stats->stats, "inworld", 0); tmp = xmprintf("GridExternalName != '%s'", stats->stats->getstr(stats->stats, "uri", false)); replaceLong(stats->stats, "outworld", dbCount(db, "hg_traveling_data", tmp)); free(tmp); -- cgit v1.1