Re: [Nautilus-list] Hardware overview



SHANE BUTLER wrote:

> Please find attached patch that adds IDE devices to the hardware overview.

I've committed the patch, thanks for the contribution.,

> Also, I couldn't work out how to format the capacity of a hdd.  My disk is
> a 20G, which shows up about 40,000,000 .  This is about line 300 if
> someone knows how to fix this.

Afaicr, /proc/ide/hdX/capacity is in sectors, and theres 512 bytes pr sector.

I redid your size calculation, at it now calcs the sizes of my disks
correctly.

/dev/eskil
---






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]