Skip to content

Commit

Permalink
kibalt? 31/12 13:52
Browse files Browse the repository at this point in the history
  • Loading branch information
yarintz33 committed Dec 31, 2021
1 parent cf9226d commit a2680d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Upload:public Command{
void makeFile(string name){
std::ofstream myFile(name);
string line = this->dio->read();
while (line.compare("done\n") != 0) {
while (line.compare("done") != 0) {
myFile<<line;
myFile<<"\n";
line = this->dio->read();
Expand Down Expand Up @@ -172,7 +172,7 @@ class UploadAnom:public Command{
dio->write("Please upload your local anomalies file.\n");
string s="";
float TP=0,sum=0,P=0;
while((s=dio->read())!="done\n"){
while((s=dio->read())!="done"){
P++;
size_t t=0;
while(s[t] != ','){
Expand Down

0 comments on commit a2680d0

Please sign in to comment.