Re: libgtop2

2005-05-12 Thread Manuel Menal
Alfred M. Szmidt wrote: Cpu(s): 5.7% us, 1.1% sy, 4.9% ni, 87.8% id, 0.4% wa, 0.0% hi, 0.1% si Ah, why didn't you say so in the first place? :) You could check what our top does, it is in the hurdextras repository on Savannah in a module called pptop. But it is still buggy, hasn't b

Re: libgtop2

2005-05-12 Thread Alfred M. Szmidt
Cpu(s): 5.7% us, 1.1% sy, 4.9% ni, 87.8% id, 0.4% wa, 0.0% hi, 0.1% si Ah, why didn't you say so in the first place? :) You could check what our top does, it is in the hurdextras repository on Savannah in a module called pptop. But it is still buggy, hasn't been touched in three yea

Re: libgtop2

2005-05-12 Thread Manuel Menal
Alfred M. Szmidt wrote: It shows CPU load; which I confused with CPU usage. Do you want the information that w on GNU/Linux calls for JCPU and PCPU for a single process? Maybe w and GNU time could be looked at in that case. I "want" the information that top on GNU/Linux shows in its third line :

Re: libgtop2

2005-05-12 Thread Alfred M. Szmidt
I've read its code (along with pptop, vmstat, and w, from which I took most of the code, or the ideas, anyway). GNU uptime does not show statistics about CPU usage, as far as I know. Or is it new? (I can't see it in coreutils CVS) It shows CPU load; which I confused with CPU usage. Do

Re: libgtop2

2005-05-12 Thread Marco Gerards
Manuel Menal <[EMAIL PROTECTED]> writes: >> Can't you get it with ifconfig or netstat on GNU/Hurd? > > With ifconfig you can't (it only shows what you can get with > the basic ioctls, that is MTU, address, netmask, broadcast, > flags, ...). I didn't know of any port of netstat for GNU/Hurd. I ass

Re: libgtop2

2005-05-12 Thread Manuel Menal
Marco Gerards wrote: Manuel Menal <[EMAIL PROTECTED]> writes: Well, it's what you get with ifconfig (or /proc/net/dev) in Linux. Like, the number of received/sent packets/bytes, errors, collissions, things like that. Drivers keep count of them already (rx_errors, rx_bytes, tx_packets, etc.). The c

Re: libgtop2

2005-05-12 Thread Marco Gerards
Manuel Menal <[EMAIL PROTECTED]> writes: >> I don't know what IP accounting is. > > Well, it's what you get with ifconfig (or /proc/net/dev) in Linux. > Like, the number of received/sent packets/bytes, errors, > collissions, things like that. Drivers keep count of them already > (rx_errors, rx_byt