- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for InhibitDelayMaxUSec (0.34 sec)
-
pkg/kubelet/nodeshutdown/systemd/inhibit_linux.go
res, err := obj.GetProperty(logindInterface + ".InhibitDelayMaxUSec") if err != nil { return 0, fmt.Errorf("failed reading InhibitDelayMaxUSec property from logind: %w", err) } delay, ok := res.Value().(uint64) if !ok { return 0, fmt.Errorf("InhibitDelayMaxUSec from logind is not a uint64 as expected") } // InhibitDelayMaxUSec is in microseconds duration := time.Duration(delay) * time.Microsecond
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 04 06:56:50 UTC 2023 - 6.2K bytes - Viewed (0) -
pkg/kubelet/nodeshutdown/systemd/inhibit_linux_test.go
bus := DBusCon{ SystemBus: &fakeSystemDBus{ fakeDBusObject: &fakeDBusObject{ properties: map[string]interface{}{ "org.freedesktop.login1.Manager.InhibitDelayMaxUSec": uint64(thirtySeconds / time.Microsecond), }, }, }, } delay, err := bus.CurrentInhibitDelay() assert.NoError(t, err) assert.Equal(t, thirtySeconds, delay) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 29 19:50:06 UTC 2023 - 4.4K bytes - Viewed (0) -
pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux.go
if err != nil { return nil, err } m.dbusCon = systemBus currentInhibitDelay, err := m.dbusCon.CurrentInhibitDelay() if err != nil { return nil, err } // If the logind's InhibitDelayMaxUSec as configured in (logind.conf) is less than periodRequested, attempt to update the value to periodRequested. if periodRequested := m.periodRequested(); periodRequested > currentInhibitDelay {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 09 08:02:40 UTC 2022 - 15.5K bytes - Viewed (0)