Re: Error in freedesktop wiki? (inhibit)

David Herrmann <[email protected]>
Newsgroups gmane.linux.xdg.devel
Message-ID <CANq1E4RGiyXpp+b0M4fjbmrzEpAn6jkt001db=e0GU90KEzrsg@mail.gmail.com>
Hi

On Wed, Jan 11, 2017 at 12:41 AM, Stefano Probst <[email protected]> wrote:
> 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
_______________________________________________
xdg mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/xdg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.