From edc78c4c83003f75544558e6c7dd635cee822b46 Mon Sep 17 00:00:00 2001
From: Steffen Vogel <post@steffenvogel.de>
Date: Sun, 31 Mar 2019 21:52:33 +0200
Subject: [PATCH] stats: remove unused hist_buckets field

---
 include/villas/stats.h |  1 -
 lib/stats.c            | 16 ++++++++--------
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/include/villas/stats.h b/include/villas/stats.h
index c8e40e73b..ad1772362 100644
--- a/include/villas/stats.h
+++ b/include/villas/stats.h
@@ -81,7 +81,6 @@ struct stats_metric_description {
 	enum stats_metric metric;
 	const char *unit;
 	const char *desc;
-	int hist_buckets;
 };
 
 struct stats_type_description {
diff --git a/lib/stats.c b/lib/stats.c
index 04609c663..29599f394 100644
--- a/lib/stats.c
+++ b/lib/stats.c
@@ -32,14 +32,14 @@
 #include <villas/table.h>
 
 struct stats_metric_description stats_metrics[] = {
-	{ "skipped",		STATS_METRIC_SMPS_SKIPPED,	"samples",	"Skipped samples and the distance between them",		25 },
-	{ "reordered",		STATS_METRIC_SMPS_REORDERED, 	"samples",	"Reordered samples and the distance between them",		25 },
-	{ "gap_sent",		STATS_METRIC_GAP_SAMPLE,	"seconds",	"Inter-message timestamps (as sent by remote)",			25 },
-	{ "gap_received",	STATS_METRIC_GAP_RECEIVED,	"seconds",	"Inter-message arrival time (as received by this instance)",	25 },
-	{ "owd",		STATS_METRIC_OWD,		"seconds",	"One-way-delay (OWD) of received messages",			25 },
-	{ "rtp.loss_fraction",	STATS_METRIC_RTP_LOSS_FRACTION,	"percent",	"Fraction lost since last RTP SR/RR.",				25 },
-	{ "rtp.pkts_lost",	STATS_METRIC_RTP_PKTS_LOST,	"packets",	"Cumulative number of packtes lost",				25 },
-	{ "rtp.jitter",		STATS_METRIC_RTP_JITTER,	"seconds",	"Interarrival jitter",						25 },
+	{ "skipped",		STATS_METRIC_SMPS_SKIPPED,	"samples",	"Skipped samples and the distance between them" 		},
+	{ "reordered",		STATS_METRIC_SMPS_REORDERED, 	"samples",	"Reordered samples and the distance between them" 		},
+	{ "gap_sent",		STATS_METRIC_GAP_SAMPLE,	"seconds",	"Inter-message timestamps (as sent by remote)" 			},
+	{ "gap_received",	STATS_METRIC_GAP_RECEIVED,	"seconds",	"Inter-message arrival time (as received by this instance)" 	},
+	{ "owd",		STATS_METRIC_OWD,		"seconds",	"One-way-delay (OWD) of received messages" 			},
+	{ "rtp.loss_fraction",	STATS_METRIC_RTP_LOSS_FRACTION,	"percent",	"Fraction lost since last RTP SR/RR."				},
+	{ "rtp.pkts_lost",	STATS_METRIC_RTP_PKTS_LOST,	"packets",	"Cumulative number of packtes lost" 				},
+	{ "rtp.jitter",		STATS_METRIC_RTP_JITTER,	"seconds",	"Interarrival jitter" 						},
 };
 
 struct stats_type_description stats_types[] = {