FreeBSD Bugzilla – Attachment 59949 Details for
Bug 90130
[patch] sysctl(8): print temperature in celsius only when -h is specified
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
sysctl.diff
sysctl.diff (text/plain), 807 bytes, created by
Marius Nuennerich
on 2005-12-09 00:50:02 UTC
(
hide
)
Description:
sysctl.diff
Filename:
MIME Type:
Creator:
Marius Nuennerich
Created:
2005-12-09 00:50:02 UTC
Size:
807 bytes
patch
obsolete
>diff -ru current-20051202/sbin/sysctl/sysctl.c current/sbin/sysctl/sysctl.c >--- current-20051202/sbin/sysctl/sysctl.c Fri Dec 2 21:52:57 2005 >+++ current/sbin/sysctl/sysctl.c Tue Dec 6 14:52:18 2005 >@@ -580,7 +580,7 @@ > if(*fmt == 'U') > printf(hflag ? "%'u" : "%u", *(unsigned int *)p); > else if (*fmt == 'K') { >- if (*(int *)p < 0) >+ if ((*(int *)p < 0) || !hflag) > printf("%d", *(int *)p); > else > printf("%d.%dC", (*(int *)p - 2732) / 10, (*(int *)p - 2732) % 10); >@@ -602,7 +602,7 @@ > if(*fmt == 'U') > printf(hflag ? "%'lu" : "%lu", *(unsigned long *)p); > else if (*fmt == 'K') { >- if (*(long *)p < 0) >+ if ((*(long *)p < 0) || !hflag) > printf("%ld", *(long *)p); > else > printf("%ld.%ldC", (*(long *)p - 2732) / 10, (*(long *)p - 2732) % 10);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 90130
: 59949