From 91357dfb375bfa4147b57ffd1b77545c9d610a08 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Sat, 11 Jan 2020 16:20:44 -0800 Subject: [PATCH] Reduce console scroll due to output while clustering.\n Signed-off-by: James Ketrenos --- scanner/scanner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scanner/scanner.c b/scanner/scanner.c index ac399fb..949142d 100644 --- a/scanner/scanner.c +++ b/scanner/scanner.c @@ -156,7 +156,7 @@ long int DBSCAN(Face **ppFaces, long int faceCount, double eps, int minPts) { freeChain(pNeighbors); pNeighbors = RangeQuery(ppFaces, faceCount, pFace, threshold); neighborCount = chainLength(pNeighbors); - fprintf(stderr, "With eps of %f, %ld has %ld neighbors.\n", threshold, pFace->faceId, neighborCount); + fprintf(stderr, "\rWith eps of %f, %ld has %ld neighbors.", threshold, pFace->faceId, neighborCount); } if (neighborCount < minPts) { @@ -480,7 +480,7 @@ int main(int argc, char *argv[]) { } } - fprintf(stderr, "%ld clusters identified!\n", clusters); + fprintf(stderr, "\n%ld clusters identified!\n", clusters); fprintf(stderr, "%ld NOISE\n", outlier); fprintf(stderr, "%ld UNDEFINED\n", undefined); fprintf(stderr, "%ld CORE\n", core);