From 9d051f44d430935ff44a0a462a6b486fdfe7d960 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Sun, 7 Jun 2020 14:54:17 +0200 Subject: [PATCH] sadf: Output format without option FO_LOCAL_TIME rejects option -T only Output format wit option FO_LOCAL_TIME not set should only rejects option -T, not option -t (use FO_NO_TRUE_TIME for that). Signed-off-by: Sebastien GODARD --- sadf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sadf.c b/sadf.c index bceb5ea..6ff4335 100644 --- a/sadf.c +++ b/sadf.c @@ -187,8 +187,8 @@ void check_format_options(void) flags &= ~S_F_HORIZONTALLY; } if (!ACCEPT_LOCAL_TIME(fmt[f_position]->options)) { - /* Remove options -T and -t */ - flags &= ~(S_F_LOCAL_TIME + S_F_TRUE_TIME); + /* Remove option -T */ + flags &= ~S_F_LOCAL_TIME; } if (!ACCEPT_SEC_EPOCH(fmt[f_position]->options)) { /* Remove option -U */ -- 2.49.0