time.js again.
This commit is contained in:
parent
ab4ce7ee30
commit
945e2a57fb
|
@ -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')) {
|
||||
|
|
Loading…
Reference in New Issue