Permalink
Browse files

Fix of a syntax error in the explain_ExecutorEnd hook (missing parent…

…hesis).
  • Loading branch information...
1 parent ef9b056 commit 80fafad73cab2beecbf3d50217cf3ab4aa072f68 @tvondra committed Oct 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 queryhist.c
View
2 queryhist.c
@@ -285,7 +285,7 @@ explain_ExecutorEnd(QueryDesc *queryDesc)
seconds = queryDesc->totaltime->total;
/* N % 100 returns value 0-99, so we need to subtract 1 from the sample_pct */
- if ((histogram_initialized) && (rand() % 100 < (default_histogram_sample_pct-1)) {
+ if ((histogram_initialized) && (rand() % 100 < (default_histogram_sample_pct-1))) {
query_hist_add_query(seconds);
}

0 comments on commit 80fafad

Please sign in to comment.