diff --git a/commands.h b/commands.h index 35e7457..6c0907b 100644 --- a/commands.h +++ b/commands.h @@ -70,14 +70,14 @@ class Upload:public Command{ void makeFile(string name){ std::ofstream myFile(name); string line = this->dio->read(); - while (line.compare("done") != 0) { + while (line.compare("done\n") != 0) { myFile<dio->read(); } } }; - +// class Correlation:public Command{ public: Correlation(DefaultIO* dio):Command(dio){} @@ -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"){ + while((s=dio->read())!="done\n"){ P++; size_t t=0; while(s[t] != ','){