From 8acf5de68cfb4e0e17f2f4c27080236adb41b273 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 22 Jan 2019 16:04:12 +0100 Subject: [PATCH] stats: remove table footer --- include/villas/stats.h | 1 - lib/stats.c | 11 ----------- lib/super_node.cpp | 2 -- 3 files changed, 14 deletions(-) diff --git a/include/villas/stats.h b/include/villas/stats.h index 8230d719c..3fd65e32d 100644 --- a/include/villas/stats.h +++ b/include/villas/stats.h @@ -90,7 +90,6 @@ json_t * stats_json(struct stats *s); void stats_reset(struct stats *s); void stats_print_header(enum stats_format fmt); -void stats_print_footer(enum stats_format fmt); void stats_print_periodic(struct stats *s, FILE *f, enum stats_format fmt, int verbose, struct node *p); diff --git a/lib/stats.c b/lib/stats.c index 66a11805e..e0e10b05c 100644 --- a/lib/stats.c +++ b/lib/stats.c @@ -149,17 +149,6 @@ void stats_print_header(enum stats_format fmt) } } -void stats_print_footer(enum stats_format fmt) -{ - switch (fmt) { - case STATS_FORMAT_HUMAN: - table_footer(&stats_table); - break; - - default: { } - } -} - void stats_print_periodic(struct stats *s, FILE *f, enum stats_format fmt, int verbose, struct node *n) { switch (fmt) { diff --git a/lib/super_node.cpp b/lib/super_node.cpp index d452ee5ef..a87e6899e 100644 --- a/lib/super_node.cpp +++ b/lib/super_node.cpp @@ -474,8 +474,6 @@ void SuperNode::stop() #ifdef WITH_HOOKS if (stats > 0) { - stats_print_footer(STATS_FORMAT_HUMAN); - ret = task_destroy(&task); if (ret) throw RuntimeError("Failed to stop stats timer");