summaryrefslogtreecommitdiffstats
path: root/src/systemctl/systemctl-show.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-11-08 08:41:16 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-11-13 13:27:07 +0100
commitfa5a025167eb861b30d384d3dc293b71914aa006 (patch)
treed7c565b9db8daf6ba450b61edf64863a71dbd5c9 /src/systemctl/systemctl-show.c
parentMerge pull request #29990 from Flowdalic/memory-zswap-current (diff)
downloadsystemd-fa5a025167eb861b30d384d3dc293b71914aa006.tar.xz
systemd-fa5a025167eb861b30d384d3dc293b71914aa006.zip
Rename {dual,triple}_timestamp_get to {dual,triple}_timestamp_now
Those functions take a pointer to a timestamp and return a timestamp pointer, so the reader would be justified to think that those are just getters. Rename them to avoid confusion.
Diffstat (limited to 'src/systemctl/systemctl-show.c')
-rw-r--r--src/systemctl/systemctl-show.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl-show.c b/src/systemctl/systemctl-show.c
index 1667ba4004..94f037615b 100644
--- a/src/systemctl/systemctl-show.c
+++ b/src/systemctl/systemctl-show.c
@@ -484,7 +484,7 @@ static void print_status_info(
dual_timestamp nw, next = {i->next_elapse_real, i->next_elapse_monotonic};
usec_t next_elapse;
- dual_timestamp_get(&nw);
+ dual_timestamp_now(&nw);
next_elapse = calc_next_elapse(&nw, &next);
if (timestamp_is_set(next_elapse))