Make status-interval actually changeable.

This commit is contained in:
Nicholas Marriott
2008-06-07 06:13:21 +00:00
parent 29e2253611
commit 713bad063a
4 changed files with 49 additions and 16 deletions

View File

@ -1,4 +1,4 @@
/* $Id: status.c,v 1.22 2008-06-06 17:20:30 nicm Exp $ */
/* $Id: status.c,v 1.23 2008-06-07 06:13:21 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -52,9 +52,6 @@ status_write_client(struct client *c)
strftime(rbuf, sizeof rbuf, right, localtime(&(c->status_ts.tv_sec)));
rlen = strlen(rbuf) + 1;
c->status_ts.tv_sec +=
options_get_number(&c->session->options, "status-interval");
screen_redraw_start_client(&ctx, c);
screen_redraw_move_cursor(&ctx, llen, c->sy - slines);
screen_redraw_set_attributes(&ctx, 0, scolour);