watch: more compatible screen format
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 2 Jan 2010 00:57:32 +0000 (01:57 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 2 Jan 2010 00:57:32 +0000 (01:57 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/watch.c

index f446ec91817162cab556e04528299f9961bf767d..ad44b3a3e2d6e4999022c8656c8bbfd8989cd16a 100644 (file)
@@ -62,7 +62,7 @@ int watch_main(int argc UNUSED_PARAM, char **argv)
                                strftime(header + width - time_len, time_len,
                                        "%Y-%m-%d %H:%M:%S", localtime(&t));
 
-                       puts(header);
+                       printf("%s\n\n", header); /* compat: empty line */
                }
                fflush_all();
                // TODO: 'real' watch pipes cmd's output to itself