From 5153e81064ee1ecf380d7e86d3629908199599d5 Mon Sep 17 00:00:00 2001 From: Olaf Leidinger Date: Tue, 21 Oct 2014 21:42:13 +0200 Subject: [PATCH] decrease drawing frequency; should fix high CPU usage (#16) --- src/extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.js b/src/extension.js index 97a4108..c59f8cf 100644 --- a/src/extension.js +++ b/src/extension.js @@ -290,7 +290,7 @@ const TeaTime = new Lang.Class({ this._bGraphicalCountdown = this._settings.get_boolean(Utils.TEATIME_GRAPHICAL_COUNTDOWN_KEY); let dt = this._bGraphicalCountdown - ? Math.max(0.1, time / 180) // set time step to fit animation + ? Math.max(1.0, time / 90) // set time step to fit animation : 1.0; // show every second for the textual countdown this._stopTime.setTime(this._startTime.getTime() + time*1000); // in msec