From fa197ec2d65ecd2581c07cb71fbd5da85e80da0e Mon Sep 17 00:00:00 2001 From: Javad Saberlatibari <76922325+javadsaberlatibari@users.noreply.github.com> Date: Tue, 2 Apr 2024 12:11:56 -0700 Subject: [PATCH] Add files via upload --- wellcoordination/benchmark/rubis.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wellcoordination/benchmark/rubis.hpp b/wellcoordination/benchmark/rubis.hpp index fd762fd..34ac4a9 100644 --- a/wellcoordination/benchmark/rubis.hpp +++ b/wellcoordination/benchmark/rubis.hpp @@ -74,6 +74,11 @@ class Rubis : public ReplicatedObject //g2.push_back(static_cast(MethodType::REMOVE_CUSTOMER)); synch_groups.push_back(g2); + std::vector g3; + g3.push_back(static_cast(MethodType::PLACE_BID)); + g3.push_back(static_cast(MethodType::CLOSE_AUCTION)); + synch_groups.push_back(g3); + for (int i = 0; i < 100; i++) { directbuysell[i] = 1000; registeredusers.insert(i); @@ -133,7 +138,7 @@ class Rubis : public ReplicatedObject void openAction(int a_id, int stock) { - if(openauctions.count(a_id)==0 && closeauctions.count(a_id)==0){ + if(openauctions.count(a_id)==0){ auction[a_id][0]=stock; openauctions.insert(a_id); }