stgt.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "yangruifeng.09209@h3c.com" <yangruifeng.09209@h3c.com>
To: "stgt@vger.kernel.org" <stgt@vger.kernel.org>
Cc: "zhengbin.08747@h3c.com" <zhengbin.08747@h3c.com>
Subject: about print_disksize
Date: Tue, 29 Sep 2015 03:38:09 +0000	[thread overview]
Message-ID: <0C3F6DA3760D0C4691E69E5BE224FF495E158CC6@H3CMLB12-EX.srv.huawei-3com.com> (raw)

Hi All£¬

In print_disksize(target.c)
mb = ((size / 512) - (((size / 512) / 625) - 974)) / 1950; 

Why this? 
512¡¢625¡¢974¡¢1950 mean what?

Why not like this,
Mb = size / (1000 * 1000)?Simpler and easier to understand

Thanks£¬
Ruifeng Yang

             reply	other threads:[~2015-09-29  3:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-29  3:38 yangruifeng.09209 [this message]
2015-09-30 12:39 ` about print_disksize Steven Graf
2015-10-09 11:10   ` 答复: " yangruifeng.09209

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=0C3F6DA3760D0C4691E69E5BE224FF495E158CC6@H3CMLB12-EX.srv.huawei-3com.com \
    --to=yangruifeng.09209@h3c.com \
    --cc=stgt@vger.kernel.org \
    --cc=zhengbin.08747@h3c.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).