BUG? incorrect percent calculate
Lars Ellenberg
maintainer/ 2006-08-18 17:03:26 +0400
\ Alexey Pushkin:
Quoted 8 lines
Здравствуйте, .
cat <
/proc/drbd
show 100% done, but it still syncing
(build 2316)"Screen-Shot":
Quoted 8 lines
version: 8.0pre4 (api:83/proto:82)
SVN Revision: 2316 build by [email protected], 2006-08-17 12:58:52
0: cs:SyncTarget st:Secondary/Primary ds:Inconsistent/UpToDate r---ns:0 nr:1154172 dw:1154172 dr:0 al:0 bm:22 lo:0 pe:25 ua:0 ap:0 [===================>] sync'ed:100.0% (1136/254488)K finish: 0:00:03 speed: 296 (188) K/sec resync: used:1/7 hits:18795 misses:21 starving:0 dirty:0 changed:21 act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0
are you just complaining about
(254488-1136)/254488 == 0.99553,
and that conventional rounding to one
decimal makes it 100.0 percent?
then: sorry, won't fix.
though, maybe, we could round down always.
but, what's the point?
or had you other issues, like
syncer not finishing properly
or something?
Signature · 3 lines
: Lars Ellenberg Tel +43-1-8178292-55 : : LINBIT Information Technologies GmbH Fax +43-1-8178292-82 : : Schoenbrunner Str. 244, A-1120 Vienna/Europe http://www.linbit.com :