Dan Cross
fa325e9b42
Trivial changes: whitespace and modes.
...
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>
2020-01-10 14:54:30 +00:00
Zach Scott
7d827b5cca
auxstats: replace /proc ACPI calls with /sys ones ( #245 )
...
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.
2019-09-19 13:08:36 -04:00
Bakul Shah
da8a485fc1
auxstats: get network stats in a portable manner on FreeBSD
...
as the old grody way doesn't work any more on FreeBSD-10 and later.
2018-01-23 09:00:53 +01:00
Gleydson Soares
009b0cb5eb
auxstats: fix OpenBSD by using getifaddrs(3) instead of kvm(3)
...
Change-Id: I6a096ba24809a402911c30406d384d16c03fc96c
Reviewed-on: https://plan9port-review.googlesource.com/1410
Reviewed-by: Russ Cox <rsc@swtch.com>
2015-12-08 16:41:13 +00:00
Aram Hăvărneanu
0c2926638b
all: fix openbsd build
...
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>
2015-06-03 15:31:44 +00:00
Shenghou Ma
20035ed43c
all: DragonFly port.
...
Fix compilation problems, libdraw still doesn't work right yet.
LGTM=rsc
R=rsc
https://codereview.appspot.com/67820046
2014-02-27 23:17:47 -05:00
Fazlul Shahriar
3c6ab1854e
stats: make more stats work in Linux
...
http://codereview.appspot.com/96084
2009-08-08 16:45:27 -04:00
Russ Cox
77ac358321
merge
2009-06-09 09:26:13 -07:00
Russ Cox
7be768e78c
auxstats: use acpi to find battery info on Linux (Andrey Mirtchovski)
2007-09-15 19:06:48 -04:00
rsc
c7a10afd38
xnet (Jeff Sickel)
2007-04-14 14:59:27 +00:00
rsc
4492a1eef7
better memory stats (Jeff Sickel)
2007-04-12 14:18:57 +00:00
rsc
edd308cfa2
fix int/size_t warning (Chad Dougherty)
2007-03-26 17:07:31 +00:00
rsc
cbeb0b26e4
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
2006-04-01 19:24:03 +00:00
rsc
2a951f5eb6
more os x 10.4
2006-01-27 03:55:18 +00:00
rsc
62a826a250
ifdef vm_swapusage for os x
2006-01-27 03:53:22 +00:00
rsc
c704a4a23e
use size_t
2005-12-30 20:41:58 +00:00
rsc
7ae652a967
FreeBSD 6 battery (Lou Kamenov)
2005-11-27 16:01:40 +00:00
rsc
69555c0e28
darwin
2005-11-10 05:45:44 +00:00
wkj
6f6012e1e9
Fix the build on FreeBSD 6.x.
...
The resulting binary still seems to produce suspect statistics.
2005-11-07 04:47:35 +00:00
rsc
663ddde9d0
More fixes.
2005-10-31 01:15:30 +00:00
rsc
f3832660d4
Jeff Sickel
2005-10-19 03:21:50 +00:00
rsc
8187859d25
new code from Jeff Sickel
2005-10-05 13:30:49 +00:00
rsc
fe8c925e8a
OpenBSD, thanks to Tim Wiess
2005-07-21 18:29:04 +00:00
rsc
a8ec4910fd
apple
2005-07-13 21:34:11 +00:00
wkj
8a830ad090
First pass at supporting FreeBSD 5.x.
...
I do not yet have a way of testing this.
2005-01-07 17:38:08 +00:00
rsc
372e9667df
Goodbye SHORTLIB
2005-01-04 22:10:29 +00:00
rsc
f7b74c1725
FreeBSD tweaks
2004-12-28 17:34:05 +00:00
wkj
4f48d1d4f7
Don't keep core dumps around.
2004-05-04 20:18:55 +00:00
rsc
be36ff6885
add -W to specify window size.
...
various other little fixes.
2004-04-29 17:13:24 +00:00
rsc
78802e6993
various bug fixes
2004-04-24 04:52:49 +00:00
rsc
272fd660b4
small bug fixes
2004-04-23 17:47:02 +00:00
rsc
fee88b7e81
use kvm on darwin
2004-04-23 05:35:09 +00:00
rsc
f2862098ca
use kvm
2004-04-23 05:34:36 +00:00
rsc
f0f4401f0c
stats helper
2004-04-23 05:12:11 +00:00