diff options
author | 2010-07-02 13:30:03 +0000 | |
---|---|---|
committer | 2010-07-02 13:30:03 +0000 | |
commit | b42e73fbd99aabd30224a1c63c40a7fd65939052 (patch) | |
tree | 52eb737d01854c1820c2939c7bd002dd072aa2b9 | |
parent | Remove bogus commas from the "bin" entry. (diff) | |
download | wireguard-openbsd-b42e73fbd99aabd30224a1c63c40a7fd65939052.tar.xz wireguard-openbsd-b42e73fbd99aabd30224a1c63c40a7fd65939052.zip |
Allow systat to print date and time when in rawmode.
ok canacar@ millert@
-rw-r--r-- | usr.bin/systat/main.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c index d4c04728508..b476a2e1d2f 100644 --- a/usr.bin/systat/main.c +++ b/usr.bin/systat/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.55 2009/07/21 17:07:38 sthen Exp $ */ +/* $Id: main.c,v 1.56 2010/07/02 13:30:03 lum Exp $ */ /* * Copyright (c) 2001, 2007 Can Erkin Acar * Copyright (c) 2001 Daniel Hartmeier @@ -109,13 +109,12 @@ print_header(void) if (paused) tbprintf(" PAUSED"); - if (rawmode) - printf("\n\n%s\n", tmp_buf); - else + if (rawmode) { + printf("\n\n%-55s%s\n", tmp_buf, tbuf); + } else { mvprintw(0, 0, "%s", tmp_buf); - - mvprintw(0, TIMEPOS, "%s", tbuf); - + mvprintw(0, TIMEPOS, "%s", tbuf); + } return (1); } |