projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'collectd-4.8' into collectd-4.9
[collectd.git]
/
src
/
logfile.c
diff --git
a/src/logfile.c
b/src/logfile.c
index
03af7a3
..
7b96ac5
100644
(file)
--- a/
src/logfile.c
+++ b/
src/logfile.c
@@
-74,9
+74,7
@@
static int logfile_config (const char *key, const char *value)
log_file = strdup (value);
}
else if (0 == strcasecmp (key, "Timestamp")) {
log_file = strdup (value);
}
else if (0 == strcasecmp (key, "Timestamp")) {
- if ((strcasecmp (value, "false") == 0)
- || (strcasecmp (value, "no") == 0)
- || (strcasecmp (value, "off") == 0))
+ if (IS_FALSE (value))
print_timestamp = 0;
else
print_timestamp = 1;
print_timestamp = 0;
else
print_timestamp = 1;