]> granicus.if.org Git - sysstat/commitdiff
sadf: Output format without option FO_LOCAL_TIME rejects option -T only
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 7 Jun 2020 12:54:17 +0000 (14:54 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 7 Jun 2020 12:54:17 +0000 (14:54 +0200)
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 <sysstat@users.noreply.github.com>
sadf.c

diff --git a/sadf.c b/sadf.c
index bceb5eafed18af87a916715e6d485fb8e6711000..6ff4335bb515635656fe0a432b8fe8c38cbadd26 100644 (file)
--- 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 */