diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-11-23 22:12:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-11-23 22:12:59 +0100 |
commit | bbb8486e1709ee297a1eb803f88041e1da1fa436 (patch) | |
tree | da5ce1c3b777c1766b3b5ef8e36fd9fbb0295e7f /src/shared | |
parent | 9a98c7a156709ae16f7e043f866ecb452ce906f8 (diff) |
util: rename format_timestamp_pretty() to format_timestamp_relative() because that describes much better what it does
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/time-util.c | 2 | ||||
-rw-r--r-- | src/shared/time-util.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/time-util.c b/src/shared/time-util.c index 3323683339..3d00b20eec 100644 --- a/src/shared/time-util.c +++ b/src/shared/time-util.c @@ -142,7 +142,7 @@ char *format_timestamp(char *buf, size_t l, usec_t t) { return buf; } -char *format_timestamp_pretty(char *buf, size_t l, usec_t t) { +char *format_timestamp_relative(char *buf, size_t l, usec_t t) { usec_t n, d; n = now(CLOCK_REALTIME); diff --git a/src/shared/time-util.h b/src/shared/time-util.h index 6b69940eb5..1f6952cc5c 100644 --- a/src/shared/time-util.h +++ b/src/shared/time-util.h @@ -71,7 +71,7 @@ usec_t timeval_load(const struct timeval *tv); struct timeval *timeval_store(struct timeval *tv, usec_t u); char *format_timestamp(char *buf, size_t l, usec_t t); -char *format_timestamp_pretty(char *buf, size_t l, usec_t t); +char *format_timestamp_relative(char *buf, size_t l, usec_t t); char *format_timespan(char *buf, size_t l, usec_t t); void dual_timestamp_serialize(FILE *f, const char *name, dual_timestamp *t); |