diff options
Diffstat (limited to 'ot_stats.c')
| -rw-r--r-- | ot_stats.c | 2 |
1 files changed, 0 insertions, 2 deletions
| @@ -4,7 +4,6 @@ | |||
| 4 | $id$ */ | 4 | $id$ */ |
| 5 | 5 | ||
| 6 | /* System */ | 6 | /* System */ |
| 7 | #include <inttypes.h> | ||
| 8 | #include <pthread.h> | 7 | #include <pthread.h> |
| 9 | #include <stdatomic.h> | 8 | #include <stdatomic.h> |
| 10 | #include <stdio.h> | 9 | #include <stdio.h> |
| @@ -513,7 +512,6 @@ static void stats_return_everything(char **reply, const char *reply_end) { | |||
| 513 | 512 | ||
| 514 | fmt_append(reply, reply_end, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); | 513 | fmt_append(reply, reply_end, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); |
| 515 | fmt_append(reply, reply_end, "<stats>\n"); | 514 | fmt_append(reply, reply_end, "<stats>\n"); |
| 516 | fmt_append(reply, reply_end, " <tracker_id>%" PRIu32 "</tracker_id>\n", g_tracker_id); | ||
| 517 | fmt_append(reply, reply_end, " <uptime>%llu</uptime>\n", (unsigned long long)(time(NULL) - ot_start_time)); | 515 | fmt_append(reply, reply_end, " <uptime>%llu</uptime>\n", (unsigned long long)(time(NULL) - ot_start_time)); |
| 518 | fmt_append(reply, reply_end, " <torrents>\n"); | 516 | fmt_append(reply, reply_end, " <torrents>\n"); |
| 519 | fmt_append(reply, reply_end, " <count_mutex>%zd</count_mutex>\n", mutex_get_torrent_count()); | 517 | fmt_append(reply, reply_end, " <count_mutex>%zd</count_mutex>\n", mutex_get_torrent_count()); |
