time.js again.

This commit is contained in:
Christopher Jeffrey 2015-04-25 19:08:58 -07:00
parent ab4ce7ee30
commit 945e2a57fb
1 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,8 @@ var screen = blessed.screen({
autoPadding: true
});
var lastTime;
var positions = {};
var container = blessed.box({
@ -1005,6 +1007,9 @@ function updateTime() {
? h + ':' + m + ':' + s + im
: h + ':' + m + im;
if (time === lastTime) return;
lastTime = time;
time = time.split('');
if (~argv.indexOf('-n')) {