55 lines
1.4 KiB
Diff
55 lines
1.4 KiB
Diff
From 3d2902236c931a8022e5031043853e19484e3530 Mon Sep 17 00:00:00 2001
|
|
From: lingsheng <lingsheng@huawei.com>
|
|
Date: Fri, 18 Sep 2020 09:47:00 +0800
|
|
Subject: [PATCH] Fix collectl2pcp option
|
|
|
|
---
|
|
src/collectl2pcp/collectl2pcp.c | 10 +++++-----
|
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/src/collectl2pcp/collectl2pcp.c b/src/collectl2pcp/collectl2pcp.c
|
|
index ceb73c6..ad44558 100644
|
|
--- a/src/collectl2pcp/collectl2pcp.c
|
|
+++ b/src/collectl2pcp/collectl2pcp.c
|
|
@@ -98,7 +98,7 @@ int indom_cnt[NUM_INDOMS];
|
|
|
|
/* global options */
|
|
int vflag;
|
|
-int Fflag;
|
|
+int fflag;
|
|
int kernel_all_hz;
|
|
int utc_offset;
|
|
|
|
@@ -112,7 +112,7 @@ static pmLongOptions longopts[] = {
|
|
};
|
|
|
|
static pmOptions opts = {
|
|
- .short_options = "FD:v?",
|
|
+ .short_options = "fD:v?",
|
|
.long_options = longopts,
|
|
.short_usage = "inputfile [inputfile ...] archive\n"
|
|
"Each 'inputfile' is a collectl archive, must be for the same host (may be gzipped).\n"
|
|
@@ -141,8 +141,8 @@ main(int argc, char *argv[])
|
|
|
|
while ((c = pmGetOptions(argc, argv, &opts)) != EOF) {
|
|
switch (c) {
|
|
- case 'F':
|
|
- Fflag = 1;
|
|
+ case 'f':
|
|
+ fflag = 1;
|
|
break;
|
|
case 'v':
|
|
vflag++;
|
|
@@ -166,7 +166,7 @@ main(int argc, char *argv[])
|
|
exit(1);
|
|
}
|
|
|
|
- if (Fflag) {
|
|
+ if (fflag) {
|
|
pmsprintf(buf, BUFSIZE, "%s.meta", archive); unlink(buf);
|
|
pmsprintf(buf, BUFSIZE, "%s.index", archive); unlink(buf);
|
|
for (j=0;; j++) {
|
|
--
|
|
2.23.0
|
|
|