aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/auxstats
Commit message (Collapse)AuthorAgeFilesLines
* config: add $egrepDan Cross2025-07-231-1/+1
| | | | | | | | | | | Introduce a new variable set in $PLAN9/config: $egrep, which is conditionally set to either `egrep` or `grep -E`, based on platform, and use this when we want to invoke `egrep`. This works around the endless warnings from GNU grep stating that `egrep` is deprecated in favor of `grep -E`, when run on e.g. Linux.
* cmd/auxstats: improve network device name matcher in LinuxNicola Girardi2021-10-181-1/+3
|
* cmd/auxstats: improve wireless interface name matcher in LinuxNic2021-10-171-1/+4
|
* auxstats: do not postnote 0Russ Cox2021-01-141-1/+2
|
* all: fix #includes for AIX, add a few AIX "implementation" filesBen Huntsman2020-05-071-0/+9
|
* Trivial changes: whitespace and modes.Dan Cross2020-01-107-36/+31
| | | | | | | | | Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
* auxstats: replace /proc ACPI calls with /sys ones (#245)Zach Scott2019-09-191-22/+8
| | | | | | According to <https://askubuntu.com/a/309146>, use of `/proc/acpi` to get battery usage is deprecated. This commit replaces the two files from this API with the single file `/sys/class/power_supply/BAT0/capacity`, simultaneously removing the need to calculate battery percentage.
* auxstats: get network stats in a portable manner on FreeBSDBakul Shah2018-01-231-33/+14
| | | | as the old grody way doesn't work any more on FreeBSD-10 and later.
* auxstats: fix OpenBSD by using getifaddrs(3) instead of kvm(3)Gleydson Soares2015-12-082-75/+24
| | | | | | Change-Id: I6a096ba24809a402911c30406d384d16c03fc96c Reviewed-on: https://plan9port-review.googlesource.com/1410 Reviewed-by: Russ Cox <rsc@swtch.com>
* all: fix openbsd buildAram Hăvărneanu2015-06-031-1/+2
| | | | | | | Change-Id: I6eaeebc9b6a4d78ce07efe7680ba8f2eff16462f Reviewed-on: https://plan9port-review.googlesource.com/1230 Reviewed-by: Minux Ma <minux@golang.org> Reviewed-by: Russ Cox <rsc@google.com>
* all: DragonFly port.Shenghou Ma2014-02-271-0/+10
| | | | | | | | Fix compilation problems, libdraw still doesn't work right yet. LGTM=rsc R=rsc https://codereview.appspot.com/67820046
* stats: make more stats work in LinuxFazlul Shahriar2009-08-081-6/+66
| | | | http://codereview.appspot.com/96084
* mergeRuss Cox2009-06-091-12/+12
|
* auxstats: use acpi to find battery info on Linux (Andrey Mirtchovski)Russ Cox2007-09-151-5/+26
|
* xnet (Jeff Sickel)rsc2007-04-141-13/+13
|
* better memory stats (Jeff Sickel)rsc2007-04-121-2/+7
|
* fix int/size_t warning (Chad Dougherty)rsc2007-03-261-1/+1
|
* Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2006-04-013-8/+8
|
* more os x 10.4rsc2006-01-271-1/+3
|
* ifdef vm_swapusage for os xrsc2006-01-271-1/+5
|
* use size_trsc2005-12-301-1/+1
|
* FreeBSD 6 battery (Lou Kamenov)rsc2005-11-271-1/+1
|
* darwinrsc2005-11-101-1/+1
|
* Fix the build on FreeBSD 6.x.wkj2005-11-071-1/+12
| | | | The resulting binary still seems to produce suspect statistics.
* More fixes.rsc2005-10-311-2/+2
|
* Jeff Sickelrsc2005-10-191-15/+16
|
* new code from Jeff Sickelrsc2005-10-051-141/+301
|
* OpenBSD, thanks to Tim Wiessrsc2005-07-211-1/+214
|
* applersc2005-07-131-0/+3
|
* First pass at supporting FreeBSD 5.x.wkj2005-01-071-0/+34
| | | | I do not yet have a way of testing this.
* Goodbye SHORTLIBrsc2005-01-041-1/+0
|
* FreeBSD tweaksrsc2004-12-281-1/+0
|
* Don't keep core dumps around.wkj2004-05-041-0/+0
|
* add -W to specify window size.rsc2004-04-291-8/+7
| | | | various other little fixes.
* various bug fixesrsc2004-04-241-1/+11
|
* small bug fixesrsc2004-04-231-4/+4
|
* use kvm on darwinrsc2004-04-231-1/+1
|
* use kvmrsc2004-04-231-0/+3
|
* stats helperrsc2004-04-2310-0/+866