aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/auxstats
AgeCommit message (Collapse)AuthorFilesLines
2020-01-10Trivial changes: whitespace and modes.Dan Cross7-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>
2019-09-19auxstats: replace /proc ACPI calls with /sys ones (#245)Zach Scott1-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.
2018-01-23auxstats: get network stats in a portable manner on FreeBSDBakul Shah1-33/+14
as the old grody way doesn't work any more on FreeBSD-10 and later.
2015-12-08auxstats: fix OpenBSD by using getifaddrs(3) instead of kvm(3)Gleydson Soares2-75/+24
Change-Id: I6a096ba24809a402911c30406d384d16c03fc96c Reviewed-on: https://plan9port-review.googlesource.com/1410 Reviewed-by: Russ Cox <rsc@swtch.com>
2015-06-03all: fix openbsd buildAram Hăvărneanu1-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>
2014-02-27all: DragonFly port.Shenghou Ma1-0/+10
Fix compilation problems, libdraw still doesn't work right yet. LGTM=rsc R=rsc https://codereview.appspot.com/67820046
2009-08-08stats: make more stats work in LinuxFazlul Shahriar1-6/+66
http://codereview.appspot.com/96084
2009-06-09mergeRuss Cox1-12/+12
2007-09-15auxstats: use acpi to find battery info on Linux (Andrey Mirtchovski)Russ Cox1-5/+26
2007-04-14xnet (Jeff Sickel)rsc1-13/+13
2007-04-12better memory stats (Jeff Sickel)rsc1-2/+7
2007-03-26fix int/size_t warning (Chad Dougherty)rsc1-1/+1
2006-04-01Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc3-8/+8
2006-01-27more os x 10.4rsc1-1/+3
2006-01-27ifdef vm_swapusage for os xrsc1-1/+5
2005-12-30use size_trsc1-1/+1
2005-11-27FreeBSD 6 battery (Lou Kamenov)rsc1-1/+1
2005-11-10darwinrsc1-1/+1
2005-11-07Fix the build on FreeBSD 6.x.wkj1-1/+12
The resulting binary still seems to produce suspect statistics.
2005-10-31More fixes.rsc1-2/+2
2005-10-19Jeff Sickelrsc1-15/+16
2005-10-05new code from Jeff Sickelrsc1-141/+301
2005-07-21OpenBSD, thanks to Tim Wiessrsc1-1/+214
2005-07-13applersc1-0/+3
2005-01-07First pass at supporting FreeBSD 5.x.wkj1-0/+34
I do not yet have a way of testing this.
2005-01-04Goodbye SHORTLIBrsc1-1/+0
2004-12-28FreeBSD tweaksrsc1-1/+0
2004-05-04Don't keep core dumps around.wkj1-0/+0
2004-04-29add -W to specify window size.rsc1-8/+7
various other little fixes.
2004-04-24various bug fixesrsc1-1/+11
2004-04-23small bug fixesrsc1-4/+4
2004-04-23use kvm on darwinrsc1-1/+1
2004-04-23use kvmrsc1-0/+3
2004-04-23stats helperrsc10-0/+866