Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Mar 2004 00:28:45 +0200
From:      Pav Lucistnik <pav@FreeBSD.org>
To:        Franz Klammer <klammer@webonaut.com>
Cc:        FreeBSD GNOME Users <gnome@FreeBSD.org>
Subject:   Re: gdesklets - calculation of disksize
Message-ID:  <1080685718.73073.21.camel@hood.oook.cz>
In-Reply-To: <4069F0A2.7040706@webonaut.com>
References:  <4069F0A2.7040706@webonaut.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-xZH0OpVYb+d9YCtuxEn5
Content-Type: text/plain; charset=iso-8859-2
Content-Transfer-Encoding: quoted-printable

V st, 31. 03. 2004 v 00:11, Franz Klammer p=ED=B9e:

> question to the knowing people:
>=20
> gdesklets didn't calculate the correct disk size returned from glibtop.
> i had to change the following lines (excerpt from a diff):
>=20
> -        free =3D float(bfree * 512)
> -        total =3D float(blocks * 512)
> +        free =3D float(bfree * 2048)
> +        total =3D float(blocks * 2048)
> =20
> 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*)

--=20
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>

Sun couldn't care less about Linux other than it now being necessary
in order to be buzzword compliant.
  -- Al Dente

--=-xZH0OpVYb+d9YCtuxEn5
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: 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?=

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBAafSTntdYP8FOsoIRAunnAKCaeAqMxICsvkR3xMJtXRzrd7hFVwCfRVQa
Cd1R9rmbnFnE1ZmOjSCykVM=
=WQIJ
-----END PGP SIGNATURE-----

--=-xZH0OpVYb+d9YCtuxEn5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1080685718.73073.21.camel>