aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorFrancesco <francesco.bbt@gmail.com>2021-07-15 00:00:42 +0200
committerGitHub <noreply@github.com>2021-07-15 00:00:42 +0200
commit69d1d5f6da76b06f03aa08ba84bf686ba1844545 (patch)
tree866cda535f12392902d633026aa7ae0d513f9186 /plugins
parent2f1c6d8a1dc2a5a44fc6a0781c551ca50211a769 (diff)
parent5415cd9d07522fbdff23a69ebc0d9eccc26821b3 (diff)
downloadlite-xl-plugins-69d1d5f6da76b06f03aa08ba84bf686ba1844545.tar.gz
lite-xl-plugins-69d1d5f6da76b06f03aa08ba84bf686ba1844545.zip
Merge pull request #47 from B14CK313/master
Fixed smallclock plugin eating cpu
Diffstat (limited to 'plugins')
-rw-r--r--plugins/smallclock.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/smallclock.lua b/plugins/smallclock.lua
index 8742b07..5c76160 100644
--- a/plugins/smallclock.lua
+++ b/plugins/smallclock.lua
@@ -9,7 +9,7 @@ core.add_thread(function()
while true do
local t = os.date("*t")
time = string.format("%02d:%02d", t.hour, t.min)
- coroutine.yield()
+ coroutine.yield(1)
end
end)