Skip to content

Commit

Permalink
Try giving schedule shutdown a uint
Browse files Browse the repository at this point in the history
  • Loading branch information
ananthb committed Jan 21, 2025
1 parent ddd495e commit be63c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion login1/dbus.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ func (c *Conn) RebootWithFlags(flags uint64) error {

// ScheduleShutdown asks logind to schedule a shutdown.
func (c *Conn) ScheduleShutdown(typ ScheduleShutdownType, when time.Time) error {
call := c.object.Call(dbusManagerInterface+".ScheduleShutdown", 0, typ.String(), when.UTC().UnixMicro())
call := c.object.Call(dbusManagerInterface+".ScheduleShutdown", 0, typ.String(), uint64(when.UTC().UnixMicro()))

Check failure on line 364 in login1/dbus.go

View workflow job for this annotation

GitHub Actions / Build on minimum supported toolchain

when.UTC().UnixMicro undefined (type time.Time has no field or method UnixMicro)

Check failure on line 364 in login1/dbus.go

View workflow job for this annotation

GitHub Actions / Distro test (debian:bullseye)

when.UTC().UnixMicro undefined (type time.Time has no field or method UnixMicro)

Check failure on line 364 in login1/dbus.go

View workflow job for this annotation

GitHub Actions / Distro test (ubuntu:20.04)

when.UTC().UnixMicro undefined (type time.Time has no field or method UnixMicro)

Check failure on line 364 in login1/dbus.go

View workflow job for this annotation

GitHub Actions / Distro test (ubuntu:22.04)

when.UTC().UnixMicro undefined (type time.Time has no field or method UnixMicro)
return call.Err
}

Expand Down

0 comments on commit be63c1b

Please sign in to comment.