aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authoronefang2021-09-03 01:38:07 +1000
committeronefang2021-09-03 01:38:07 +1000
commitf8db5bc9832e4625d23ce1b7df4e744460e8f96d (patch)
tree86042b63b640bd3f112a9c3081d451c9f939fcd0 /src
parentRemove no longer needed commented out code. (diff)
downloadopensim-SC-f8db5bc9832e4625d23ce1b7df4e744460e8f96d.zip
opensim-SC-f8db5bc9832e4625d23ce1b7df4e744460e8f96d.tar.gz
opensim-SC-f8db5bc9832e4625d23ce1b7df4e744460e8f96d.tar.bz2
opensim-SC-f8db5bc9832e4625d23ce1b7df4e744460e8f96d.tar.xz
Don't kick off stats collection unless sledjchisl is a web server.
Diffstat (limited to 'src')
-rw-r--r--src/sledjchisl/sledjchisl.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index 4651a69..0907ab1 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -8798,16 +8798,19 @@ fi
8798 goto finished; 8798 goto finished;
8799 } 8799 }
8800 8800
8801 // Need to kick this off. 8801 if (isWeb)
8802 stats = getStats(database, stats); 8802 {
8803 char *h = qstrunchar(qconfig->getstr(qconfig, "Const.HostName", false), '"', '"'); 8803 // Need to kick this off.
8804 char *p = qstrunchar(qconfig->getstr(qconfig, "Const.PublicPort", false), '"', '"'); 8804 stats = getStats(database, stats);
8805 stats->stats->putstr(stats->stats, "grid", qstrunchar(qconfig->getstr(qconfig, "Const.GridName", false), '"', '"')); 8805 char *h = qstrunchar(qconfig->getstr(qconfig, "Const.HostName", false), '"', '"');
8806 stats->stats->putstr(stats->stats, "HostName", h); 8806 char *p = qstrunchar(qconfig->getstr(qconfig, "Const.PublicPort", false), '"', '"');
8807 stats->stats->putstr(stats->stats, "PublicPort", p); 8807 stats->stats->putstr(stats->stats, "grid", qstrunchar(qconfig->getstr(qconfig, "Const.GridName", false), '"', '"'));
8808 snprintf(toybuf, sizeof(toybuf), "http://%s:%s/", h, p); 8808 stats->stats->putstr(stats->stats, "HostName", h);
8809 8809 stats->stats->putstr(stats->stats, "PublicPort", p);
8810 stats->stats->putstr(stats->stats, "uri", toybuf); 8810 snprintf(toybuf, sizeof(toybuf), "http://%s:%s/", h, p);
8811
8812 stats->stats->putstr(stats->stats, "uri", toybuf);
8813 }
8811 qconfig->free(qconfig); 8814 qconfig->free(qconfig);
8812 } 8815 }
8813 8816