Skip to content

Commit

Permalink
SLPTU is number not timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
ibmmqmet committed Aug 12, 2019
1 parent ebf6db5 commit 191a694
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,6 @@ Apr 2019 (v5.1.1)

Jul 2019 (v5.1.2)
* Make sure Windows program pointer sizes are correct

Aug 2019 (v5.1.3)
* Print QJST SLPTU as number not timestamp
Binary file modified bin/aix/convH
Binary file not shown.
Binary file modified bin/aix/mqsmfcsv
Binary file not shown.
Binary file modified bin/linux/mqsmfcsv
Binary file not shown.
Binary file modified bin/win/mqsmfcsv.exe
Binary file not shown.
17 changes: 11 additions & 6 deletions src/printQJST.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void printQJST(qjst *p)
ADDS32("Log_Write_Threshold" ,p->qjstthrw);
ADDS32("Log_Write_Buffer_Paged",p->qjstbpag);

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

if (conv16(p->qjstll)>=offsetof(qjst,qjstio[0]))
if (conv16(p->qjstll)>offsetof(qjst,qjstio[0]))
{
for (i=0;i<2;i++)
{
Expand All @@ -92,13 +92,13 @@ void printQJST(qjst *p)
}
}

ADDTIME("Writer_Idle_Time" , p->qjstslptu);
ADDU64 ("IO_Time_Sum_Squares_1", p->qjstiosqu[0]);
ADDU64 ("IO_Time_Sum_Squares_2", p->qjstiosqu[1]);
ADDU64 ("Writer_Idle_Time" , p->qjstslptu);
ADDU64 ("IO_Time_Sum_Squares_1", p->qjstiosqu[0]);
ADDU64 ("IO_Time_Sum_Squares_2", p->qjstiosqu[1]);
}

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

return;
}


/*
double loggerTaskPercentBusy = 100.0 * (1 - (double)pQJST->qjstslptu /(double)(statsDuration * 1000000 ));
*/

0 comments on commit 191a694

Please sign in to comment.