]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsclocks: rename column RESOLUTION to RESOL_RAW
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 3 Jul 2023 15:58:29 +0000 (17:58 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 4 Jul 2023 12:15:20 +0000 (14:15 +0200)
The new name is shorter and opens the path for a human readable version.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
misc-utils/lsclocks.1.adoc
misc-utils/lsclocks.c

index 38d665f727571d634e6bb0e116c34b770be8bee8..9c9fb083305a4e787dfb689c2cc3bd94c33cd16a 100644 (file)
@@ -63,7 +63,7 @@ Current clock timestamp as returned by *clock_gettime()*.
 ISO_TIME <``string``>::
 ISO8601 formatted version of *TIME*.
 
-RESOLUTION <``number``>::
+RESOL_RAW <``number``>::
 Clock resolution as returned by *clock_getres()*.
 
 REL_TIME <``string``>::
index 4ca07af15a6911977fb64e7a549964b0c5f121d5..c4724fc524704edda62b23e58f679c9910a65334 100644 (file)
@@ -97,7 +97,7 @@ enum {
        COL_NAME,
        COL_TIME,
        COL_ISO_TIME,
-       COL_RESOLUTION,
+       COL_RESOL_RAW,
        COL_REL_TIME,
 };
 
@@ -117,7 +117,7 @@ static const struct colinfo infos[] = {
        [COL_NAME]       = { "NAME",       1, 0,              SCOLS_JSON_STRING, N_("readable name") },
        [COL_TIME]       = { "TIME",       1, SCOLS_FL_RIGHT, SCOLS_JSON_NUMBER, N_("numeric time") },
        [COL_ISO_TIME]   = { "ISO_TIME",   1, SCOLS_FL_RIGHT, SCOLS_JSON_STRING, N_("human readable ISO time") },
-       [COL_RESOLUTION] = { "RESOLUTION", 1, SCOLS_FL_RIGHT, SCOLS_JSON_NUMBER, N_("resolution") },
+       [COL_RESOL_RAW]  = { "RESOL_RAW",  1, SCOLS_FL_RIGHT, SCOLS_JSON_NUMBER, N_("resolution") },
        [COL_REL_TIME]   = { "REL_TIME",   1, SCOLS_FL_RIGHT, SCOLS_JSON_STRING, N_("human readable relative time") },
 };
 
@@ -293,7 +293,7 @@ int main(int argc, char **argv)
                columns[ncolumns++] = COL_ID;
                columns[ncolumns++] = COL_NAME;
                columns[ncolumns++] = COL_TIME;
-               columns[ncolumns++] = COL_RESOLUTION;
+               columns[ncolumns++] = COL_RESOL_RAW;
                columns[ncolumns++] = COL_ISO_TIME;
        }
 
@@ -358,7 +358,7 @@ int main(int argc, char **argv)
                                                errx(EXIT_FAILURE, _("failed to format iso time"));
                                        scols_line_set_data(ln, j, buf);
                                        break;
-                               case COL_RESOLUTION:
+                               case COL_RESOL_RAW:
                                        rc = clock_getres(clockinfo->id, &resolution);
                                        if (!rc)
                                                scols_line_format_timespec(ln, j, &resolution);