]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
update
authorhadeshyp <hadeshyp>
Mon, 22 Aug 2011 18:08:14 +0000 (18:08 +0000)
committerhadeshyp <hadeshyp>
Mon, 22 Aug 2011 18:08:14 +0000 (18:08 +0000)
libtrbnet/trbcmd.c

index c34b826930424283e323cdd8dd665cecd59a9f81..9373337bc064991842a05c154645c0945fe130df 100644 (file)
@@ -25,7 +25,7 @@
 
 static int hexMode = HEXMODE;
 
-static const char trbcmd_version[] = "$Revision: 2.70 $";
+static const char trbcmd_version[] = "$Revision: 2.71 $";
 
 #define BACKLOG 10
 static uint16_t tcp_port = 55555;
@@ -98,7 +98,7 @@ void usage(const char *progName)
   fprintf(stdout, "  -n    repeat COMMAND number times, -1 = endless loop\n");
   fprintf(stdout,
           "  -s    only if running in -n mode, "
-          "sleep time in useconds (usleep)\n");
+          "sleep time in ms\n");
   fprintf(stdout,
           "  -M    turn on HighMemoryMode (maximum usage is 20MByte, default: "
           "3MByte)\n");
@@ -223,7 +223,7 @@ int start(int argc, char **argv)
       loop = strtol(optarg, NULL, 0);
       break;
     case 's':
-      sleepTime = strtol(optarg, NULL, 0);
+      sleepTime = strtol(optarg, NULL, 0) * 1000;
       break;
     case 'd':
       trb_debug = strtoul(optarg, NULL, 0);