On Wed, Mar 28, 2012 at 5:17 AM, Robert Haas <rh...@postgresql.org> wrote:
> pg_test_timing utility, to measure clock monotonicity and timing cost.

When I compiled this, I got a compiler warning. Attached patch
silences the warning.

Also I found one trivial problem in the doc of pg_test_timing. The
patch fixes that.

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center
*** a/contrib/pg_test_timing/pg_test_timing.c
--- b/contrib/pg_test_timing/pg_test_timing.c
***************
*** 155,161 **** test_timing(int32 duration)
          if (found || histogram[i])
          {
              found = 1;
!             printf("%9ld: %10ld %8.5f%%\n", 1l << i, histogram[i],
                  (double) histogram[i] * 100 / loop_count);
          }
      }
--- 155,161 ----
          if (found || histogram[i])
          {
              found = 1;
!             printf("%9ld: %10lld %8.5f%%\n", 1l << i, histogram[i],
                  (double) histogram[i] * 100 / loop_count);
          }
      }
*** a/doc/src/sgml/pgtesttiming.sgml
--- b/doc/src/sgml/pgtesttiming.sgml
***************
*** 28,35 **** pg_test_timing [options]
      <variablelist>
  
       <varlistentry>
!       <term><option>-d</option></term>
!       <term><option>--duration</option></term>
        <listitem>
         <para>
          Specifies the test duration, in seconds. Longer durations
--- 28,35 ----
      <variablelist>
  
       <varlistentry>
!       <term><option>-d <replaceable class="parameter">duration</replaceable></option></term>
!       <term><option>--duration=<replaceable class="parameter">duration</replaceable></option></term>
        <listitem>
         <para>
          Specifies the test duration, in seconds. Longer durations
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to