summaryrefslogtreecommitdiff
path: root/ot_stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_stats.c')
-rw-r--r--ot_stats.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ot_stats.c b/ot_stats.c
index 7cbd1ce..8b36323 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -13,6 +13,7 @@
13#include <string.h> 13#include <string.h>
14#include <pthread.h> 14#include <pthread.h>
15#include <unistd.h> 15#include <unistd.h>
16#include <inttypes.h>
16 17
17/* Libowfat */ 18/* Libowfat */
18#include "byte.h" 19#include "byte.h"
@@ -485,6 +486,7 @@ static size_t stats_return_everything( char * reply ) {
485 486
486 r += sprintf( r, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" ); 487 r += sprintf( r, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" );
487 r += sprintf( r, "<stats>\n" ); 488 r += sprintf( r, "<stats>\n" );
489 r += sprintf( r, " <tracker_id>%" PRIu32 "</tracker_id>\n", g_tracker_id );
488 r += sprintf( r, " <version>\n" ); r += stats_return_tracker_version( r ); r += sprintf( r, " </version>\n" ); 490 r += sprintf( r, " <version>\n" ); r += stats_return_tracker_version( r ); r += sprintf( r, " </version>\n" );
489 r += sprintf( r, " <uptime>%llu</uptime>\n", (unsigned long long)(time( NULL ) - ot_start_time) ); 491 r += sprintf( r, " <uptime>%llu</uptime>\n", (unsigned long long)(time( NULL ) - ot_start_time) );
490 r += sprintf( r, " <torrents>\n" ); 492 r += sprintf( r, " <torrents>\n" );