mirror of
https://github.com/cryptonote-social/csminer.git
synced 2024-09-11 05:35:23 +03:00
fix gnome idle vs active swap
This commit is contained in:
parent
03e9479c1b
commit
16cef82ef1
@ -47,11 +47,11 @@ func (s GnomeScreenStater) GetScreenStateChannel() (chan csminer.ScreenState, er
|
||||
str := fmt.Sprintf("%v", m.Body[0])
|
||||
if str == "true" {
|
||||
crylog.Info("Gnome screensaver turned on")
|
||||
ret <- csminer.ScreenState(csminer.SCREEN_ACTIVE)
|
||||
ret <- csminer.ScreenState(csminer.SCREEN_IDLE)
|
||||
continue
|
||||
} else if str == "false" {
|
||||
crylog.Info("Gnome screensaver turned off")
|
||||
ret <- csminer.ScreenState(csminer.SCREEN_IDLE)
|
||||
ret <- csminer.ScreenState(csminer.SCREEN_ACTIVE)
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user