File tree 1 file changed +5
-5
lines changed
wellcoordination/benchmark
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class Rubis : public ReplicatedObject
21
21
// openAuction 1(id) by default consider 100 auctions are open.
22
22
// placeBid 3 3(auctionid+userid+value)
23
23
// openauctions 4
24
- // closeauction
24
+ // closeauctions
25
25
// query 6 like movie does not consider read.
26
26
private:
27
27
@@ -123,7 +123,7 @@ class Rubis : public ReplicatedObject
123
123
// 3
124
124
void placeBid (int a_id, int u_id, int value)
125
125
{
126
- if (registeredusers.count (u_id)==1 && openauctions.count (a_id)==1 && closeauction .count (a_id)==0 ){
126
+ if (registeredusers.count (u_id)==1 && openauctions.count (a_id)==1 && closeauctions .count (a_id)==0 ){
127
127
if (auction[a_id][1 ]<value){
128
128
auction[a_id][0 ]=u_id;
129
129
auction[a_id][1 ]=value;
@@ -133,15 +133,15 @@ class Rubis : public ReplicatedObject
133
133
134
134
void openAction (int a_id, int stock)
135
135
{
136
- if (openauctions.count (a_id)==0 && closeauction .count (a_id)==0 ){
136
+ if (openauctions.count (a_id)==0 && closeauctions .count (a_id)==0 ){
137
137
auction[a_id][0 ]=stock;
138
138
openauctions.insert (a_id);
139
139
}
140
140
}
141
141
void closeActions (int a_id)
142
142
{
143
- if (openauctions.count (a_id)==1 && closeauction .count (a_id)==0 ){
144
- closeauction .insert (a_id);
143
+ if (openauctions.count (a_id)==1 && closeauctions .count (a_id)==0 ){
144
+ closeauctions .insert (a_id);
145
145
}
146
146
}
147
147
You can’t perform that action at this time.
0 commit comments