Skip to content

Commit

Permalink
fix example GetServerStatus bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
baotiao committed Aug 9, 2017
1 parent 93cac7f commit e5f6464
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions floyd/example/simple/t.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ int main()
for (int i = 0; i < 100000; i++) {
mystr[i] = slash::RandomString(10);
}
f1->GetServerStatus(msg);
f1->GetServerStatus(&msg);
printf("%s\n", msg.c_str());
st = NowMicros();
for (int j = 0; j < 100000; j++) {
Expand All @@ -75,7 +75,7 @@ int main()

cnt = 5;
while (cnt--) {
f2->GetServerStatus(msg);
f2->GetServerStatus(&msg);
for (int j = 0; j < 100; j++) {
f2->Write("zz2" + char(j), "value2" + char(j));
}
Expand All @@ -88,7 +88,7 @@ int main()
}
cnt = 5;
while (cnt--) {
f2->GetServerStatus(msg);
f2->GetServerStatus(&msg);
for (int j = 0; j < 100; j++) {
f1->Write("zz3" + char(j), "value3" + char(j));
}
Expand Down

0 comments on commit e5f6464

Please sign in to comment.