From: Lars Ellenberg <Lars.Ellenberg@linbit.com>
To: drbd-dev@lists.linbit.com
Subject: [Drbd-dev] Re: BUG? incorrect percent calculate
Date: Fri, 18 Aug 2006 15:20:05 +0200 [thread overview]
Message-ID: <20060818132005.GI7595@soda.linbit> (raw)
In-Reply-To: <546701173.20060818170326@yandex.ru>
/ 2006-08-18 17:03:26 +0400
\ Alexey Pushkin:
> Здравствуйте, .
>
> cat </proc/drbd
> show 100% done, but it still syncing
> (build 2316)
>
> "Screen-Shot":
>
> version: 8.0pre4 (api:83/proto:82)
> SVN Revision: 2316 build by root@ajax-cluster-2.eab.ru, 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?
--
: 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 :
parent reply other threads:[~2006-08-18 13:20 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <546701173.20060818170326@yandex.ru>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060818132005.GI7595@soda.linbit \
--to=lars.ellenberg@linbit.com \
--cc=drbd-dev@lists.linbit.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox