summaryrefslogtreecommitdiff
path: root/ot_stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_stats.c')
-rw-r--r--ot_stats.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ot_stats.c b/ot_stats.c
index 5edbe0a..59a9f04 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -635,11 +635,11 @@ void stats_return_tracker_features(char **reply, const char *reply_end) {
635 635
636void stats_return_tracker_version(char **reply, const char *reply_end) { 636void stats_return_tracker_version(char **reply, const char *reply_end) {
637 fmt_append(reply, reply_end, "opentracker %s", OT_VERSION); 637 fmt_append(reply, reply_end, "opentracker %s", OT_VERSION);
638 /* Empty when the build had no git to ask, which is what a release tarball 638 if (*GIT_VERSION && strcmp(GIT_VERSION, OT_TAG))
639 looks like */
640 if (*GIT_VERSION)
641 fmt_append(reply, reply_end, " (%s)", GIT_VERSION); 639 fmt_append(reply, reply_end, " (%s)", GIT_VERSION);
642 fmt_append(reply, reply_end, "\n"); 640 fmt_append(reply, reply_end, "\n");
641 if (*OT_TAG)
642 fmt_append(reply, reply_end, "https://erdgeist.org/gitweb/opentracker/tag/?h=%s\n", OT_TAG);
643} 643}
644 644
645void return_stats_for_tracker(char **reply, const char *reply_end, int mode, int format) { 645void return_stats_for_tracker(char **reply, const char *reply_end, int mode, int format) {