OSDN Git Service
(root)
/
pinky-bar
/
pinky-bar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ca53a0
)
Dont include non-spinning or removed fans
author
wifiextender
<router@archlinux.info>
Tue, 28 Jul 2015 14:04:18 +0000
(14:04 +0000)
committer
wifiextender
<router@archlinux.info>
Tue, 28 Jul 2015 14:04:18 +0000
(14:04 +0000)
src/functions.c
patch
|
blob
|
history
diff --git
a/src/functions.c
b/src/functions.c
index
8b16d4c
..
73d9325
100644
(file)
--- a/
src/functions.c
+++ b/
src/functions.c
@@
-276,7
+276,7
@@
void get_fans(char *str1)
for (x = 0; x < z; ++x)
all_fans += snprintf(all_fans,
sizeof(buffer) - (all_fans - buffer),
-
UFINT" "
, rpm[x]);
+
(rpm[x] > 0 ? UFINT" " : "")
, rpm[x]);
FILL_STR_ARR(str1, buffer);
}