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, 0 insertions, 6 deletions
diff --git a/ot_stats.c b/ot_stats.c
index 59a9f04..8771f0c 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -514,9 +514,6 @@ static void stats_return_everything(char **reply, const char *reply_end) {
514 fmt_append(reply, reply_end, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); 514 fmt_append(reply, reply_end, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
515 fmt_append(reply, reply_end, "<stats>\n"); 515 fmt_append(reply, reply_end, "<stats>\n");
516 fmt_append(reply, reply_end, " <tracker_id>%" PRIu32 "</tracker_id>\n", g_tracker_id); 516 fmt_append(reply, reply_end, " <tracker_id>%" PRIu32 "</tracker_id>\n", g_tracker_id);
517 fmt_append(reply, reply_end, " <version>\n");
518 stats_return_tracker_version(reply, reply_end);
519 fmt_append(reply, reply_end, " </version>\n");
520 fmt_append(reply, reply_end, " <uptime>%llu</uptime>\n", (unsigned long long)(time(NULL) - ot_start_time)); 517 fmt_append(reply, reply_end, " <uptime>%llu</uptime>\n", (unsigned long long)(time(NULL) - ot_start_time));
521 fmt_append(reply, reply_end, " <torrents>\n"); 518 fmt_append(reply, reply_end, " <torrents>\n");
522 fmt_append(reply, reply_end, " <count_mutex>%zd</count_mutex>\n", mutex_get_torrent_count()); 519 fmt_append(reply, reply_end, " <count_mutex>%zd</count_mutex>\n", mutex_get_torrent_count());
@@ -666,9 +663,6 @@ void return_stats_for_tracker(char **reply, const char *reply_end, int mode, int
666 case TASK_STATS_HTTPERRORS: 663 case TASK_STATS_HTTPERRORS:
667 stats_httperrors_txt(reply, reply_end); 664 stats_httperrors_txt(reply, reply_end);
668 break; 665 break;
669 case TASK_STATS_VERSION:
670 stats_return_tracker_version(reply, reply_end);
671 break;
672 case TASK_STATS_RENEW: 666 case TASK_STATS_RENEW:
673 stats_return_renew_bucket(reply, reply_end); 667 stats_return_renew_bucket(reply, reply_end);
674 break; 668 break;