From 76e4b4ac675075e22be62935dc438139c4b17cb1 Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 19 Jul 2005 06:28:57 +0000 Subject: 2005-07-18 Martin Hunt * stp_merge.c (main): Fix dropped count calculation. --- runtime/stpd/ChangeLog | 4 ++++ runtime/stpd/stp_merge.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'runtime') diff --git a/runtime/stpd/ChangeLog b/runtime/stpd/ChangeLog index 2f403049..b32b8e1b 100644 --- a/runtime/stpd/ChangeLog +++ b/runtime/stpd/ChangeLog @@ -1,3 +1,7 @@ +2005-07-18 Martin Hunt + + * stp_merge.c (main): Fix dropped count calculation. + 2005-07-14 Tom Zanussi * librelay.c (reader_thread): Add missing pthread_mutex_lock diff --git a/runtime/stpd/stp_merge.c b/runtime/stpd/stp_merge.c index 739e34cd..e9b449d2 100644 --- a/runtime/stpd/stp_merge.c +++ b/runtime/stpd/stp_merge.c @@ -99,9 +99,9 @@ int main (int argc, char *argv[]) fputc_unlocked (c, ofp); } if (min && ++count != min) { - // fprintf(stderr, "got %ld. expected %ld\n", min, count); + //fprintf(stderr, "got %ld. expected %ld\n", min, count); + dropped += min - count ; count = min; - dropped++ ; } if (fread (buf, TIMESTAMP_SIZE, 1, fp[j])) -- cgit