diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-04-02 20:38:16 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-04-03 20:12:57 +0200 |
commit | 7f602784de4fd378120e8ebfe6d830862b9cae03 (patch) | |
tree | e10d14f7b9a3154097b5f2cc2cc92ff0028101ed /src/journal/journalctl.c | |
parent | 574d5f2dfc25226afc718aa5ba1a145fe5cad221 (diff) |
util: rename parse_usec() to parse_sec() sinds the default unit is seconds
Internally we store all time values in usec_t, however parse_usec()
actually was used mostly to parse values in seconds (unless explicit
units were specified to define a different unit). Hence, be clear about
this and name the function about what we pass into it, not what we get
out of it.
Diffstat (limited to 'src/journal/journalctl.c')
-rw-r--r-- | src/journal/journalctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 8661e5e33a..642e20d43f 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -355,7 +355,7 @@ static int parse_argv(int argc, char *argv[]) { break; case ARG_INTERVAL: - r = parse_usec(optarg, &arg_interval); + r = parse_sec(optarg, &arg_interval); if (r < 0 || arg_interval <= 0) { log_error("Failed to parse sealing key change interval: %s", optarg); return -EINVAL; |