summaryrefslogtreecommitdiffstats
path: root/src/timesync/timesyncd.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-06-14 10:13:08 +0200
committerLennart Poettering <lennart@poettering.net>2023-06-14 10:23:56 +0200
commite503019bc71c33495ddd7e4270c73f1f0a366834 (patch)
tree9812502b9d4f12993b6d9ff5d3ff2af7cd0c3d8c /src/timesync/timesyncd.c
parenttime-util,socket: accept both kinds of unicode µ symbols (diff)
downloadsystemd-e503019bc71c33495ddd7e4270c73f1f0a366834.tar.xz
systemd-e503019bc71c33495ddd7e4270c73f1f0a366834.zip
tree-wide: when in doubt use greek small letter mu rather than micro symbol
Doesn't really matter since the two unicode symbols are supposedly equivalent, but let's better follow the unicode recommendations to prefer greek small letter mu, as per: https://www.unicode.org/reports/tr25
Diffstat (limited to 'src/timesync/timesyncd.c')
-rw-r--r--src/timesync/timesyncd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timesync/timesyncd.c b/src/timesync/timesyncd.c
index 416b536aed..1d8ebecc91 100644
--- a/src/timesync/timesyncd.c
+++ b/src/timesync/timesyncd.c
@@ -32,15 +32,15 @@ static int advance_tstamp(int fd, const struct stat *st) {
* different timestamp accuracy: traditional fat has 2s granularity, and even ext2 and friends expose
* different granularity depending on selected inode size during formatting! Hence, to ensure the
* timestamp definitely is increased, here's what we'll do: we'll first try to increase the timestamp
- * by 1µs, write that and read it back. If it was updated, great. But if it was not, we'll instead
- * increase the timestamp by 10µs, and do the same, then 100µs, then 1ms, and so on, until it works,
+ * by 1μs, write that and read it back. If it was updated, great. But if it was not, we'll instead
+ * increase the timestamp by 10μs, and do the same, then 100μs, then 1ms, and so on, until it works,
* or we reach 10s. If it still didn't work then, the fs is just broken and we give up. */
usec_t target = MAX3(now(CLOCK_REALTIME),
TIME_EPOCH * USEC_PER_SEC,
timespec_load(&st->st_mtim));
- for (usec_t a = 1; a <= 10 * USEC_PER_SEC; a *= 10) { /* 1µs, 10µs, 100µs, 1ms, … 10s */
+ for (usec_t a = 1; a <= 10 * USEC_PER_SEC; a *= 10) { /* 1μs, 10μs, 100μs, 1ms, … 10s */
struct timespec ts[2];
struct stat new_st;