pkgsrc/sysutils/torsmo/patches/patch-ac
ghen f8ede62061 Torsmo is a system monitor that sits in the corner of your desktop. It's
very simple, customizable and it renders only text on the desktop (and
percentagebars if you want it to ;) and the only lib it uses is Xlib.
Torsmo can show various information about your system and it's peripherals,
including:

* Kernel version
* Uptime
* System time
* Network interface information
* Memory and swap usage
* Hostname
* Machine, i686 for example
* System name, Linux for example
* Temperatures from i2c-sensors
* Temperature from ACPI
* Battery capacity from ACPI/APM
* Number of processes running or sleeping
* Local mails (unread and all)
* Filesystem stats
2006-03-29 21:42:55 +00:00

19 lines
504 B
Text

$NetBSD: patch-ac,v 1.1.1.1 2006/03/29 21:42:55 ghen Exp $
--- torsmo.c.orig 2004-12-21 23:14:46.000000000 +0100
+++ torsmo.c
@@ -888,12 +888,14 @@ static void generate_text() {
OBJ(freq) {
snprintf(p, n, "%s", get_freq());
}
+#if defined(__linux__)
OBJ(adt746xcpu) {
snprintf(p, n, "%s", get_adt746x_cpu());
}
OBJ(adt746xfan) {
snprintf(p, n, "%s", get_adt746x_fan());
}
+#endif
OBJ(acpifan) {
snprintf(p, n, "%s", get_acpi_fan());
}