Skip to content

Commit 37af466

Browse files
committed
Remove duplicate fields from WQ
1 parent 18cb315 commit 37af466

File tree

6 files changed

+7
-14
lines changed

6 files changed

+7
-14
lines changed

.gitignore

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ src/Bip*
99
csq*
1010
/src/t2
1111
/src/t3
12+
/testing/data/SMF*
13+
/tmp/*

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ March 2016 - Initial release
3333
April 2016 - Update to support MQ V9 pageset statistics
3434
Improved formatting for import to Access
3535
Fixed some mis-labelled columns
36+
June 2016 - Add the "hidden" WTASCORR field
37+
Print the buildtime to help know what version is in use
38+
Clearer printing of which records were unrecognised
3639

3740
Pull requests
3841
=============

bin/aix/mqsmfcsv

-4.04 KB
Binary file not shown.

bin/linux/mqsmfcsv

-4 KB
Binary file not shown.

bin/win/mqsmfcsv.exe

-3.5 KB
Binary file not shown.

src/printWQ.c

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,8 @@ void printWQ(wq *p)
8181
ADDU32 ("GETA ",p->geta);
8282
ADDU32 ("GETS ",p->gets);
8383
ADDU32 ("GETERR ",p->geterr);
84-
ADDU32 ("GETDVAL",p->getdval);
8584
ADDSTCK("GETJWET",p->getjwet);
86-
ADDSTCK("GETJCET",p->getjcet);
8785
ADDU32 ("GETJWN ",p->getjwn);
88-
ADDU32 ("GETJCN ",p->getjcn);
8986
ADDSTCK("GETPSET",p->getpset);
9087
ADDU32 ("GETPSN ",p->getpsn);
9188
ADDSTCK("GETSUSET",p->getsuset);
@@ -100,30 +97,23 @@ void printWQ(wq *p)
10097
ADDSTCK("PUTET", p->putet);
10198
ADDSTCK("PUTCT", p->putct);
10299
ADDU32 ("PUTN ",p->putn);
103-
ADDU32 ("PUTPWG ",p->putpwg);
104100
ADDU32 ("PUTIGQ ",p->putigq);
105101
ADDSTCK("PUTJWET",p->putjwet);
106-
ADDSTCK("PUTJCET",p->putjcet);
107102
ADDU32 ("PUTJWN ",p->putjwn);
108-
ADDU32 ("PUTJCN ",p->putjcn);
109103
ADDSTCK("PUTSUSET",p->putsuset);
110104
ADDU32 ("PUTSUSN",p->putsusn);
111105
ADDSTCK("PUTPSET",p->putpset);
112106
ADDU32 ("PUTPSN ",p->putpsn);
113-
ADDU32 ("PUTDDLY",p->putddly);
114107

115108
/*--------------------------------------------------------*/
116109
/* Put1 - information */
117110
/*-------------------------------------------------------*/
118111
ADDSTCK("PUT1ET", p->put1et);
119112
ADDSTCK("PUT1CT", p->put1ct);
120113
ADDU32 ("PUT1N " ,p->put1n);
121-
ADDU32 ("PUT1PWG" ,p->put1pwg);
122114
ADDU32 ("PUT1IGQ" ,p->put1igq);
123115
ADDSTCK("PUT1JWET" ,p->put1jwet);
124-
ADDSTCK("PUT1JCET" ,p->put1jcet);
125116
ADDU32 ("PUT1JWN" ,p->put1jwn);
126-
ADDU32 ("PUT1JCN" ,p->put1jcn);
127117
ADDSTCK("PUT1SUSET",p->put1suset);
128118
ADDU32 ("PUT1SUSN" ,p->put1susn);
129119
ADDSTCK("PUT1PSET" ,p->put1pset);
@@ -143,9 +133,7 @@ void printWQ(wq *p)
143133
ADDSTCK("SETCT", p->setct);
144134
ADDU32 ("SETN ",p->setn);
145135
ADDSTCK("SETJWET", p->setjwet);
146-
ADDSTCK("SETJCET", p->setjcet);
147136
ADDU32 ("SETJWN ",p->setjwn);
148-
ADDU32 ("SETJCN ",p->setjcn);
149137

150138
/*--------------------------------------------------------*/
151139
/* other - information */
@@ -158,7 +146,7 @@ void printWQ(wq *p)
158146
/* Byte counts and persistent data information */
159147
/* The MINMS values for put/get are initially set to */
160148
/* 0x0FFFFFFF, and appear that way in the SMF report if */
161-
/* noputs/gets have touched that queue. But that looks */
149+
/* no puts/gets have touched that queue. But that looks */
162150
/* ugly, so I'm turning them to -1. */
163151
/*--------------------------------------------------------*/
164152
if (conv32(p->getminms) == 0x0FFFFFFF)
@@ -257,7 +245,7 @@ void printWQ(wq *p)
257245
ADDSTCK("TOPICCLOSESRB ", p->topicclosesrb);
258246
}
259247

260-
if (conv32(p->wqver) > 8)
248+
if (conv32(p->wqver) >= 8)
261249
{
262250
ADDU32("PUTDDLY",p->putddly);
263251
}

0 commit comments

Comments
 (0)