Skip to content

Commit 191a694

Browse files
committed
SLPTU is number not timestamp
1 parent ebf6db5 commit 191a694

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,6 @@ Apr 2019 (v5.1.1)
9292

9393
Jul 2019 (v5.1.2)
9494
* Make sure Windows program pointer sizes are correct
95+
96+
Aug 2019 (v5.1.3)
97+
* Print QJST SLPTU as number not timestamp

bin/aix/convH

0 Bytes
Binary file not shown.

bin/aix/mqsmfcsv

-242 Bytes
Binary file not shown.

bin/linux/mqsmfcsv

0 Bytes
Binary file not shown.

bin/win/mqsmfcsv.exe

0 Bytes
Binary file not shown.

src/printQJST.c

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void printQJST(qjst *p)
4747
ADDS32("Log_Write_Threshold" ,p->qjstthrw);
4848
ADDS32("Log_Write_Buffer_Paged",p->qjstbpag);
4949

50-
if (conv16(p->qjstll)>=offsetof(qjst,qjstio))
50+
if (conv16(p->qjstll)>offsetof(qjst,qjstio))
5151
{
5252
/* Array of 1 entry! Reserved space follows for 2 more, but they */
5353
/* are not currently used. If the others are ever used, change the */
@@ -68,7 +68,7 @@ void printQJST(qjst *p)
6868
}
6969
}
7070

71-
if (conv16(p->qjstll)>=offsetof(qjst,qjstio[0]))
71+
if (conv16(p->qjstll)>offsetof(qjst,qjstio[0]))
7272
{
7373
for (i=0;i<2;i++)
7474
{
@@ -92,13 +92,13 @@ void printQJST(qjst *p)
9292
}
9393
}
9494

95-
ADDTIME("Writer_Idle_Time" , p->qjstslptu);
96-
ADDU64 ("IO_Time_Sum_Squares_1", p->qjstiosqu[0]);
97-
ADDU64 ("IO_Time_Sum_Squares_2", p->qjstiosqu[1]);
95+
ADDU64 ("Writer_Idle_Time" , p->qjstslptu);
96+
ADDU64 ("IO_Time_Sum_Squares_1", p->qjstiosqu[0]);
97+
ADDU64 ("IO_Time_Sum_Squares_2", p->qjstiosqu[1]);
9898
}
9999

100100
/* MQ 9.1.2 added support for zHyperwrite logging */
101-
if (conv16(p->qjstll)>=offsetof(qjst,qjstcp1n))
101+
if (conv16(p->qjstll)>offsetof(qjst,qjstcp1n))
102102
{
103103
ADDS32("Copy1_New_Logs" , p->qjstcp1n);
104104
ADDS32("Copy2_New_Logs" , p->qjstcp2n);
@@ -110,3 +110,8 @@ void printQJST(qjst *p)
110110

111111
return;
112112
}
113+
114+
115+
/*
116+
double loggerTaskPercentBusy = 100.0 * (1 - (double)pQJST->qjstslptu /(double)(statsDuration * 1000000 ));
117+
*/

0 commit comments

Comments
 (0)