Reduce the time tick frequency to reduce idle CPU time

Closes #22
This commit is contained in:
Utku Demir 2021-05-01 18:41:12 +12:00
parent 65dffe179b
commit e313e84e47
No known key found for this signature in database
GPG Key ID: F3F8629C3E0BF60B
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## Unreleaased:
* fix: Reduce idle CPU use
## 0.1.7 - 2021-03-28
* feat: Ability to yank selected store path to clipboard (shortcut: 'y')

View File

@ -117,7 +117,7 @@ run env = do
chan <- B.newBChan 10
void . forkIO $
forever $ do
threadDelay (100 * 100)
threadDelay (100 * 1000)
t <- getTime
_ <- B.writeBChanNonBlocking chan (EventTick t)
return ()