projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f8c505
)
afh: Chunk numbers are zero-based.
author
Andre Noll
<maan@systemlinux.org>
Tue, 17 Aug 2010 20:11:24 +0000
(22:11 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Tue, 17 Aug 2010 20:11:24 +0000
(22:11 +0200)
This makes the numbers match what para_server logs.
afh.c
patch
|
blob
|
history
diff --git
a/afh.c
b/afh.c
index b38dfbba056a321493226663849beab0d50ce273..b66e260adf47d9b4350d8d05610e8945c6a8efad 100644
(file)
--- 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]);