summaryrefslogtreecommitdiff
path: root/procps/watch.c
diff options
context:
space:
mode:
Diffstat (limited to 'procps/watch.c')
-rw-r--r--procps/watch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/procps/watch.c b/procps/watch.c
index 126945c40..a1cde9ea0 100644
--- a/procps/watch.c
+++ b/procps/watch.c
@@ -52,7 +52,8 @@ int watch_main(int argc UNUSED_PARAM, char **argv)
52 width = (unsigned)-1; // make sure first time new_width != width 52 width = (unsigned)-1; // make sure first time new_width != width
53 header = NULL; 53 header = NULL;
54 while (1) { 54 while (1) {
55 printf("\033[H\033[J"); 55 /* home; clear to the end of screen */
56 printf("\033[H""\033[J");
56 if (!(opt & 0x2)) { // no -t 57 if (!(opt & 0x2)) { // no -t
57 const unsigned time_len = sizeof("1234-67-90 23:56:89"); 58 const unsigned time_len = sizeof("1234-67-90 23:56:89");
58 time_t t; 59 time_t t;