mirror of
https://github.com/prashantgupta24/automatic-mouse-mover.git
synced 2024-12-22 16:34:11 +00:00
handling all changes after waking up
This commit is contained in:
parent
6e927e5423
commit
6d1ee4eb50
@ -14,7 +14,7 @@ var instance *MouseMover
|
|||||||
const (
|
const (
|
||||||
timeout = 100 //ms
|
timeout = 100 //ms
|
||||||
logDir = "log"
|
logDir = "log"
|
||||||
logFileName = "logFile-amm-2"
|
logFileName = "logFile-amm-3"
|
||||||
)
|
)
|
||||||
|
|
||||||
//Start the main app
|
//Start the main app
|
||||||
@ -88,7 +88,7 @@ func (m *MouseMover) run(heartbeatCh chan *tracker.Heartbeat, activityTracker *t
|
|||||||
logger.Infof("activityType : %v times: %v\n", activityType, len(times))
|
logger.Infof("activityType : %v times: %v\n", activityType, len(times))
|
||||||
if activityType == activity.MachineSleep {
|
if activityType == activity.MachineSleep {
|
||||||
state.updateMachineSleepStatus(true)
|
state.updateMachineSleepStatus(true)
|
||||||
} else if activityType == activity.MachineWake {
|
} else {
|
||||||
state.updateMachineSleepStatus(false)
|
state.updateMachineSleepStatus(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user