]> andersk Git - moira.git/commitdiff
Fixes moira[1791], where extended output from a get_host query would
authorzacheiss <zacheiss>
Wed, 9 May 2001 21:27:36 +0000 (21:27 +0000)
committerzacheiss <zacheiss>
Wed, 9 May 2001 21:27:36 +0000 (21:27 +0000)
scroll off the top of the display window.

The reason for this is that the code for determining the number of lines
remaining counts "\nfoo" as one line, even though it will take up two on
your display.

Fix:  Use Put_message("") instead of \n for a blank line.

clients/moira/cluster.c

index c8cb8f196678efb9ab6c1b0bee0d9e0a0e683a3d..627ba4a6ad844a34c1cd577ed4ee8dc3156723a4 100644 (file)
@@ -230,9 +230,11 @@ static char *PrintMachInfo(char **info)
   sprintf(buf, "OS:       %-16s    Billing Contact: %s", info[M_OS],
          info[M_BILL_CONTACT]);
   Put_message(buf);
-  sprintf(buf, "\nOpt: %s", info[M_USE]);
+  Put_message("");
+  sprintf(buf, "Opt: %s", info[M_USE]);
   Put_message(buf);
-  sprintf(buf, "\nAdm cmt: %s", info[M_ACOMMENT]);
+  Put_message("");
+  sprintf(buf, "Adm cmt: %s", info[M_ACOMMENT]);
   Put_message(buf);
   sprintf(buf, "Op cmt:  %s", info[M_OCOMMENT]);
   Put_message(buf);
This page took 0.589719 seconds and 5 git commands to generate.