diff options
author | sem <sem@FreeBSD.org> | 2004-12-25 22:53:00 +0000 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2004-12-25 22:53:00 +0000 |
commit | d18e84e10c63fca4d6b0e2688e1e3a9dea18b1b1 (patch) | |
tree | 5fea9ce9adccdc89715098da8497c6e74645acc9 /sysutils/torsmo/files/patch-torsmo.c | |
parent | a9f4da344331b182d49f2241adc71311c38865f7 (diff) | |
download | FreeBSD-ports-d18e84e10c63fca4d6b0e2688e1e3a9dea18b1b1.zip FreeBSD-ports-d18e84e10c63fca4d6b0e2688e1e3a9dea18b1b1.tar.gz |
- Update to 0.18
PR: ports/75435
Submitted by: maintainer
Diffstat (limited to 'sysutils/torsmo/files/patch-torsmo.c')
-rw-r--r-- | sysutils/torsmo/files/patch-torsmo.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sysutils/torsmo/files/patch-torsmo.c b/sysutils/torsmo/files/patch-torsmo.c index 2d041d1..d0c476d 100644 --- a/sysutils/torsmo/files/patch-torsmo.c +++ b/sysutils/torsmo/files/patch-torsmo.c @@ -1,6 +1,6 @@ ---- torsmo.c.orig Wed Oct 13 17:31:57 2004 -+++ torsmo.c Wed Oct 13 17:35:45 2004 -@@ -376,7 +376,7 @@ +--- torsmo.c.orig Wed Dec 22 01:14:46 2004 ++++ torsmo.c Wed Dec 22 21:49:27 2004 +@@ -272,7 +272,7 @@ snprintf(buf, 255, "%.1fM", m); } else if (a >= 1024) @@ -9,33 +9,33 @@ else snprintf(buf, 255, "%Ld", a); } -@@ -998,7 +998,7 @@ +@@ -883,7 +883,7 @@ } OBJ(acpitemp) { /* does anyone have decimals in acpi temperature? */ - snprintf(p, n, "%d", (int) get_acpi_temperature(obj->data.i)); + snprintf(p, n, "%0.1f", (float)get_acpi_temperature(obj->data.i)); } - OBJ(acpifan) { - snprintf(p, n, "%s", get_acpi_fan()); -@@ -2248,8 +2248,8 @@ + OBJ(freq) { + snprintf(p, n, "%s", get_freq()); +@@ -2223,8 +2223,8 @@ /* handle other command line arguments */ - optind = 0; - -+ optind = optreset = 1; ++ optind = optreset = 1; + while (1) { int c = getopt(argc, argv, getopt_string); if(c == -1) break; -@@ -2353,8 +2353,7 @@ +@@ -2319,8 +2319,7 @@ default: fprintf(stderr, "torsmo: forked to background, pid is %d\n", ret); - exit(0); - break; -+ return 0; ++ return 0; } } |