From 7716a4fa637c2eaa53cb026ff990f0cde0343ca6 Mon Sep 17 00:00:00 2001 From: Rob White Date: Mon, 28 Sep 2020 16:15:54 +0100 Subject: [PATCH] Deprecate ndsctl clients option Signed-off-by: Rob White --- src/util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util.c b/src/util.c index 61e57c8..f9723f2 100644 --- a/src/util.c +++ b/src/util.c @@ -592,6 +592,7 @@ ndsctl_status(FILE *fp) fprintf(fp, "========\n"); } +// Deprecate ndsctl clients void ndsctl_clients(FILE *fp) { @@ -637,6 +638,9 @@ ndsctl_clients(FILE *fp) fprintf(fp, "uploaded=%llu\n", upload_bytes/1000); fprintf(fp, "avg_up_speed=%.2f\n\n", ((double)upload_bytes) / 125 / durationsecs); + fprintf(fp, "Warning - ndsctl clients is deprecated and will be removed in future versions.\n"); + fprintf(fp, "please use status or json options instead.\n"); + indx++; client = client->next; }