Skip to content

Commit 8cde3d8

Browse files
committed
fix dtmbench
1 parent a00f069 commit 8cde3d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

contrib/pg_tsdtm/tests/dtmbench.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ int main (int argc, char* argv[])
383383
cfg.nReaders,
384384
cfg.nWriters,
385385
nAborts,
386-
(int)(nAborts*100/nWrites),
386+
(int)(nAborts*100/(nWrites + 0.0001)),
387387
maxReadDuration, maxWriteDuration,
388388
cfg.nAccounts,
389389
cfg.nIterations,

contrib/pg_tsdtm/tests/perf.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
- name: run transfers
4646
shell: >
4747
~/pg_cluster/install/bin/dtmbench {{connections}}
48-
-w {{ (nconns | d(100)| int)*(nnodes | d(2) | int)/(2*( groups['clients'] | count))}}
49-
-s {{offset}} -d 100000 -r 1 -n 10000 -a 1000000 |
48+
-w {{ writers | d(100) }}
49+
-s {{ offset }} -d 100000 -r {{ readers | d(1) }} -n 10000 -a 1000000 |
5050
tee -a perf.results |
5151
sed "s/^/`hostname`:/"
5252
register: transfers_result

0 commit comments

Comments
 (0)