Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
javadsaberlatibari authored Apr 2, 2024
1 parent f3c5660 commit fa197ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wellcoordination/benchmark/rubis.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ class Rubis : public ReplicatedObject
//g2.push_back(static_cast<int>(MethodType::REMOVE_CUSTOMER));
synch_groups.push_back(g2);

std::vector<int> g3;
g3.push_back(static_cast<int>(MethodType::PLACE_BID));
g3.push_back(static_cast<int>(MethodType::CLOSE_AUCTION));
synch_groups.push_back(g3);

for (int i = 0; i < 100; i++) {
directbuysell[i] = 1000;
registeredusers.insert(i);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit fa197ec

Please sign in to comment.