Deprecate ndsctl clients option

Signed-off-by: Rob White <rob@blue-wave.net>
This commit is contained in:
Rob White
2020-09-28 16:15:54 +01:00
parent 4b6bb4310d
commit 7716a4fa63

View File

@@ -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;
}