diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2004-12-25 22:53:00 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2004-12-25 22:53:00 +0000 |
commit | 135c4b95914b8235c3103667910ce9b6bb8d8915 (patch) | |
tree | 75006fd3d68fdb7e88f45aac59c48ba345fddb80 /sysutils/torsmo/files/patch-torsmo.c | |
parent | Update to version 0.8.8. (diff) |
- Update to 0.18
PR: ports/75435
Submitted by: maintainer
Notes
Notes:
svn path=/head/; revision=125184
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 2d041d13a02f..d0c476dd6b22 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; } } |