From b3645fd7a4128d337f4c633a2953ac0af952d170 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 17 Aug 2010 22:11:24 +0200 Subject: [PATCH] afh: Chunk numbers are zero-based. This makes the numbers match what para_server logs. --- afh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afh.c b/afh.c index b38dfbba..b66e260a 100644 --- a/afh.c +++ b/afh.c @@ -76,7 +76,7 @@ static void print_chunk_table(struct afh_info *afhi) from = tv2ms(&tv); tv_scale(i, &afhi->chunk_tv, &tv); to = tv2ms(&tv); - printf("%d [%lu.%03lu - %lu.%03lu] %u - %u (%u)\n", i, + printf("%d [%lu.%03lu - %lu.%03lu] %u - %u (%u)\n", i - 1, from / 1000, from % 1000, to / 1000, to % 1000, afhi->chunk_table[i - 1], afhi->chunk_table[i], afhi->chunk_table[i] - afhi->chunk_table[i - 1]); -- 2.39.2