watch: more compatible screen format

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-01-02 01:57:32 +01:00
parent 2e36eb8f27
commit f25252c69e

View 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