Discussion:
Error in freedesktop wiki? (inhibit)
Stefano Probst
2017-01-10 23:41:54 UTC
Permalink
Hi,

is it possible that the article systemd/inhibit [1] contains an error?
In this page „InhibitDelayMaxUSec“ is listed but in man/logind.conf [2]
I see only a „InhibitDelayMaxSec“. Without a „U“.

Best regards
Stefano Probst

[1]: https://www.freedesktop.org/wiki/Software/systemd/inhibit/
[2]:
https://www.freedesktop.org/software/systemd/man/logind.conf.html#InhibitDelayMaxSec=
David Herrmann
2017-01-15 19:21:07 UTC
Permalink
Hi
Post by Stefano Probst
Hi,
is it possible that the article systemd/inhibit [1] contains an error?
In this page „InhibitDelayMaxUSec“ is listed but in man/logind.conf [2]
I see only a „InhibitDelayMaxSec“. Without a „U“.
The wiki page is actually correct. "Sec" is used for logind.conf,
"USec" is used in the DBus API. Reason for this is probably that via
DBus we wanted a simple uint64_t, hence providing "seconds" would lose
precision, so you specify the microseconds -> "USec".
In logind.conf, however, you can provide a normal
systemd-time-configuration-string with suffix, and the default is
always "seconds" (to follow the metric system, I guess?). So in the
configuration, you can use "100ms", "10s", "10h5s" etc., but if you
specify just "77", it will be interpreted as seconds.

Does that make sense?

Thanks
David
Stefano Probst
2017-01-16 13:14:19 UTC
Permalink
Hello,

Thanks David. From this perspective everything looks fine & make sense.
I misinterpreted only one sentence.

Best regards
Stefano

Loading...