Index: /tools/SkyQualityMonitor/sqm.cpp
===================================================================
--- /tools/SkyQualityMonitor/sqm.cpp	(revision 95)
+++ /tools/SkyQualityMonitor/sqm.cpp	(revision 96)
@@ -45,5 +45,5 @@
     printf("+++ Sky Quality Monitor Interface +++\n");
     printf("Usage: %s <server name> <port> <slow data dir> <period (sec)>\n", argv[0]);
-    printf("Taking defaults: <%s> <%d> <%s> <d>\n", ServerName, DAQPort, SlowDir, Period);
+    printf("Taking defaults: <%s> <%d> <%s> <%d>\n", ServerName, DAQPort, SlowDir, Period);
   } 
   else {
@@ -94,10 +94,10 @@
       printf("Error: Could not write read command to socket.\n");
     }
-    usleep(Period*1e6/2);  // Wait half period here to allow for response
+    usleep((int) (Period*1e6/2));  // Wait half period here to allow for response
     
     // Wait for data from socket with time-out
     FD_ZERO(&ReadFileDescriptor);   
     FD_SET(SocketDescriptor, &ReadFileDescriptor);
-    struct timeval WaitTime = {PERIOD, 0};
+    struct timeval WaitTime = {Period, 0};
     if (select(((int) SocketDescriptor)+1, &ReadFileDescriptor, NULL, NULL, &WaitTime)==-1) {
       perror("Error with select()");
@@ -128,5 +128,5 @@
     printf("\r%s %s CTRL-c to exit.",Buffer, asctime(localtime(&Time)));
     fflush(stdout);
-    usleep(Period*1e6/2); // Wait second half period here
+    usleep((int) (Period*1e6/2)); // Wait second half period here
  
   } // while()
