util: rename format_timestamp_pretty() to format_timestamp_relative() because that describes much better what it does

This commit is contained in:
Lennart Poettering
2012-11-23 22:12:59 +01:00
parent 9a98c7a156
commit bbb8486e17
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);