From 6b9379a938b9febc07d9dfec1a7e604dab1a5ecd Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Fri, 31 Oct 2008 18:12:03 +0000 Subject: [PATCH] Switch the HH:MM:SS second clock to HH:MM less updates == less debug spew. svn path=/trunk/; revision=11 --- js/ui/panel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/panel.js b/js/ui/panel.js index 6b1a92840..85fe95e1c 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -53,7 +53,7 @@ Panel.prototype = { _startClock: function() { let me = this; - Mainloop.timeout_add_seconds(1, + Mainloop.timeout_add_seconds(60, function() { me._updateClock(); return true; @@ -61,7 +61,7 @@ Panel.prototype = { }, _updateClock: function() { - this._clock.set_text(new Date().toLocaleFormat("%H:%M:%S")); + this._clock.set_text(new Date().toLocaleFormat("%H:%M")); this._clock.set_anchor_point_from_gravity(Clutter.Gravity.NORTH_EAST); return true;