Changeset: df892b1c948b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=df892b1c948b
Modified Files:
clients/mapiclient/stethoscope.c
clients/mapiclient/tachograph.c
clients/mapiclient/tomograph.c
Branch: default
Log Message:
Set a lower default beat
diffs (103 lines):
diff --git a/clients/mapiclient/stethoscope.c b/clients/mapiclient/stethoscope.c
--- a/clients/mapiclient/stethoscope.c
+++ b/clients/mapiclient/stethoscope.c
@@ -79,7 +79,7 @@ static stream *conn = NULL;
static char hostname[128];
static char *basefilename = "stethoscope";
static int debug = 0;
-static int beat = 50;
+static int beat = 5000;
static Mapi dbh;
static MapiHdl hdl = NULL;
@@ -96,7 +96,7 @@ usageStethoscope(void)
fprintf(stderr, " -p | --port=<portnr>\n");
fprintf(stderr, " -h | --host=<hostname>\n");
fprintf(stderr, " -o | --output=<file>\n");
- fprintf(stderr, " -b | --beat=<delay> in milliseconds (default 50)\n");
+ fprintf(stderr, " -b | --beat=<delay> in milliseconds (default
5000)\n");
fprintf(stderr, " -? | --help\n");
exit(-1);
}
@@ -159,7 +159,7 @@ main(int argc, char **argv)
debug = 1;
break;
case 'b':
- beat = atoi(optarg ? optarg : "100");
+ beat = atoi(optarg ? optarg : "5000");
break;
case 'd':
dbname = optarg;
diff --git a/clients/mapiclient/tachograph.c b/clients/mapiclient/tachograph.c
--- a/clients/mapiclient/tachograph.c
+++ b/clients/mapiclient/tachograph.c
@@ -77,6 +77,7 @@ static stream *conn = NULL;
static char hostname[128];
static char *basefilename = "tacho";
static char *dbname;
+static int beat = 5000;
static Mapi dbh;
static MapiHdl hdl = NULL;
static int capturing=0;
@@ -93,6 +94,7 @@ usageTachograph(void)
fprintf(stderr, " -u | --user=<user>\n");
fprintf(stderr, " -p | --port=<portnr>\n");
fprintf(stderr, " -h | --host=<hostname>\n");
+ fprintf(stderr, " -b | --beat=<delay> in milliseconds (default
5000)\n");
fprintf(stderr, " -o | --output=<webfile>\n");
fprintf(stderr, " -? | --help\n");
exit(-1);
@@ -324,6 +326,7 @@ main(int argc, char **argv)
{ "password", 1, 0, 'P' },
{ "host", 1, 0, 'h' },
{ "help", 0, 0, '?' },
+ { "beat", 1, 0, 'b' },
{ "output", 1, 0, 'o' },
{ "debug", 0, 0, 'D' },
{ 0, 0, 0, 0 }
@@ -334,11 +337,14 @@ main(int argc, char **argv)
while (1) {
int option_index = 0;
- int c = getopt_long(argc, argv, "d:u:p:P:h:?:o:D",
+ int c = getopt_long(argc, argv, "d:u:p:P:h:?:b:o:D",
long_options, &option_index);
if (c == -1)
break;
switch (c) {
+ case 'b':
+ beat = atoi(optarg ? optarg : "5000");
+ break;
case 'D':
debug = 1;
break;
diff --git a/clients/mapiclient/tomograph.c b/clients/mapiclient/tomograph.c
--- a/clients/mapiclient/tomograph.c
+++ b/clients/mapiclient/tomograph.c
@@ -83,7 +83,7 @@ static FILE *tracefd;
static lng startrange = 0, endrange = 0;
static char *inputfile = NULL;
static char *title = 0;
-static int beat = 50;
+static int beat = 5000;
static int cpus = 0;
static int atlas= 1;
static int atlaspage = 0;
@@ -440,7 +440,7 @@ usageTomograph(void)
fprintf(stderr, " -r | --range=<starttime>-<endtime>[ms,s] \n");
fprintf(stderr, " -i | --input=<profiler event file > \n");
fprintf(stderr, " -o | --output=<file prefix > (default
'tomograph'\n");
- fprintf(stderr, " -b | --beat=<delay> in milliseconds (default 50)\n");
+ fprintf(stderr, " -b | --beat=<delay> in milliseconds (default
5000)\n");
fprintf(stderr, " -A | --atlas=<number> maximum number of pages\n");
fprintf(stderr, " -D | --debug\n");
fprintf(stderr, " -? | --help\n");
@@ -1537,7 +1537,7 @@ main(int argc, char **argv)
atlas = atoi(optarg ? optarg : "1");
break;
case 'b':
- beat = atoi(optarg ? optarg : "100");
+ beat = atoi(optarg ? optarg : "5000");
break;
case 'D':
debug = 1;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list