gdesklets - calculation of disksize

Pav Lucistnik pav at FreeBSD.org
Tue Mar 30 14:28:51 PST 2004


V st, 31. 03. 2004 v 00:11, Franz Klammer píše:

> question to the knowing people:
> 
> gdesklets didn't calculate the correct disk size returned from glibtop.
> i had to change the following lines (excerpt from a diff):
> 
> -        free = float(bfree * 512)
> -        total = float(blocks * 512)
> +        free = float(bfree * 2048)
> +        total = float(blocks * 2048)
>  
> my questions:
> - is this only necessary on -CURRENT?
> - if yes: from which version upwards i should check?

Does it depend on block size of given filesystem, by chance?
You can create filesystem with various block size...

Also while we're speaking about it, swap display from Psi set shows all
values multiplied by 1000 (according to that display I have 340M used in
1.46T swap on this box, *cough* *cough*)

-- 
Pav Lucistnik <pav at oook.cz>
              <pav at FreeBSD.org>

Sun couldn't care less about Linux other than it now being necessary
in order to be buzzword compliant.
  -- Al Dente
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Toto je =?iso-8859-2?Q?digit=E1ln=EC?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?iso-8859-2?Q?_=E8=E1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20040331/58d8f107/attachment.bin


More information about the freebsd-gnome mailing list