Dolda2000 GitWeb
/
statserve.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added the ability to specify database page size.
[statserve.git]
/
statserve.c
diff --git
a/statserve.c
b/statserve.c
index
ed49388
..
ab3b346
100644
(file)
--- a/
statserve.c
+++ b/
statserve.c
@@
-59,7
+59,7
@@
out:
static void usage(FILE *out)
{
static void usage(FILE *out)
{
- fprintf(out, "usage: statserve [-h] SOURCE...\n");
+ fprintf(out, "usage: statserve [-h]
[-P PAGESIZE]
SOURCE...\n");
}
static void listenloop(struct muth *muth, va_list args)
}
static void listenloop(struct muth *muth, va_list args)
@@
-89,8
+89,11
@@
int main(int argc, char **argv)
int c;
struct source *last, *src;
int c;
struct source *last, *src;
- while((c = getopt(argc, argv, "+h")) >= 0) {
+ while((c = getopt(argc, argv, "+h
P:
")) >= 0) {
switch(c) {
switch(c) {
+ case 'P':
+ dbpagesize = atoi(optarg);
+ break;
case 'h':
usage(stdout);
return(0);
case 'h':
usage(stdout);
return(0);