mirror of
https://github.com/rancher/os.git
synced 2025-07-31 22:47:16 +00:00
Merge pull request #559 from luxas/32bit
Fixed 32-bit issue in power.go
This commit is contained in:
commit
e451abd532
@ -129,7 +129,7 @@ func Halt() {
|
||||
reboot(syscall.LINUX_REBOOT_CMD_HALT)
|
||||
}
|
||||
|
||||
func reboot(code int) {
|
||||
func reboot(code uint) {
|
||||
err := shutDownContainers()
|
||||
if err != nil {
|
||||
log.Error(err)
|
||||
@ -137,7 +137,7 @@ func reboot(code int) {
|
||||
|
||||
syscall.Sync()
|
||||
|
||||
err = syscall.Reboot(code)
|
||||
err = syscall.Reboot(int(code))
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user