summaryrefslogtreecommitdiff
path: root/usr.bin/systat/main.c
diff options
context:
space:
mode:
authorlum <lum@cvs.openbsd.org>2010-07-02 13:30:04 +0000
committerlum <lum@cvs.openbsd.org>2010-07-02 13:30:04 +0000
commitfc6089cdb2ab2b5d7cf385d9864e9266e42034d2 (patch)
tree0efe0480978964f92841dd998ea5a7d814600fd7 /usr.bin/systat/main.c
parentae8c711793a24aa282c2dd57b1848aedf9661b29 (diff)
Allow systat to print date and time when in rawmode.
ok canacar@ millert@
Diffstat (limited to 'usr.bin/systat/main.c')
-rw-r--r--usr.bin/systat/main.c13
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);
}