diff options
Diffstat (limited to 'ot_stats.c')
| -rw-r--r-- | ot_stats.c | 9 |
1 files changed, 6 insertions, 3 deletions
| @@ -547,9 +547,12 @@ static void stats_return_everything(char **reply, const char *reply_end) { | |||
| 547 | } | 547 | } |
| 548 | 548 | ||
| 549 | void stats_return_tracker_version(char **reply, const char *reply_end) { | 549 | void stats_return_tracker_version(char **reply, const char *reply_end) { |
| 550 | #define QUOTE(name) #name | 550 | fmt_append(reply, reply_end, "opentracker %s", OT_VERSION); |
| 551 | #define SQUOTE(name) QUOTE(name) | 551 | /* Empty when the build had no git to ask, which is what a release tarball |
| 552 | fmt_append(reply, reply_end, "https://erdgeist.org/gitweb/opentracker/commit/?id=" SQUOTE(GIT_VERSION) "\n"); | 552 | looks like */ |
| 553 | if (*GIT_VERSION) | ||
| 554 | fmt_append(reply, reply_end, " (%s)", GIT_VERSION); | ||
| 555 | fmt_append(reply, reply_end, "\n"); | ||
| 553 | } | 556 | } |
| 554 | 557 | ||
| 555 | void return_stats_for_tracker(char **reply, const char *reply_end, int mode, int format) { | 558 | void return_stats_for_tracker(char **reply, const char *reply_end, int mode, int format) { |
