projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85fa829
)
pgbench: Remove stray use of "float" math.
author
Noah Misch
<noah@leadboat.com>
Sat, 5 Oct 2013 21:19:37 +0000
(17:19 -0400)
committer
Noah Misch
<noah@leadboat.com>
Sat, 5 Oct 2013 21:19:37 +0000
(17:19 -0400)
Oversight in commit
4a87f308b33457670f9ab4bc622678e5d285b9c2
.
Fabien COELHO
contrib/pgbench/pgbench.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pgbench/pgbench.c
b/contrib/pgbench/pgbench.c
index 059c5b785960657de7e1596df15d7ed380e43f35..a3b37e9bdc126a6294e2d29da58851eda75ae1df 100644
(file)
--- a/
contrib/pgbench/pgbench.c
+++ b/
contrib/pgbench/pgbench.c
@@
-3077,7
+3077,7
@@
threadRun(void *arg)
/* generate and show report */
int64 count = 0;
int64 run = now - last_report;
-
float
tps, total_run, latency;
+
double
tps, total_run, latency;
for (i = 0 ; i < nstate ; i++)
count += state[i].cnt;
@@
-3107,7
+3107,7
@@
threadRun(void *arg)
/* generate and show report */
int64 count = 0;
int64 run = now - last_report;
-
float
tps, total_run, latency;
+
double
tps, total_run, latency;
for (i = 0 ; i < progress_nclients ; i++)
count += state[i].cnt;