OSDN Git Service

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 f446ec9..ad44b3a 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