]> git.ipfire.org Git - thirdparty/systemd.git/commit
time-util: accept "µs" as time unit, in addition to "us" (#4836)
authorLennart Poettering <lennart@poettering.net>
Tue, 6 Dec 2016 09:51:26 +0000 (10:51 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Tue, 6 Dec 2016 09:51:26 +0000 (10:51 +0100)
commit5efdbf11d1ef7da72d3de58abecd84edefbaf98a
tree2e3128ccf41aa60c8e2826e76c15404848655202
parent471b9850ee10dea07233af485e125897d2d35a00
time-util: accept "µs" as time unit, in addition to "us" (#4836)

Let's accept "µs" as alternative time unit for microseconds. We already accept
"us" and "usec" for them, lets extend on this and accept the proper scientific
unit specification too.

We will never output this as time unit, but it's fine to accept it, after all
we are pretty permissive with time units already.
src/basic/time-util.c
src/test/test-time.c