Skip to content
Snippets Groups Projects
Commit fa321c14 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix missing return in SlurmWrapper

parent 55856098
No related branches found
No related tags found
No related merge requests found
...@@ -17,10 +17,12 @@ private: ...@@ -17,10 +17,12 @@ private:
int m_slurm_job_id = -1; int m_slurm_job_id = -1;
public: public:
bool mustStop() const bool
mustStop() const
{ {
if (m_slurm_job_id == -1) { if (m_slurm_job_id == -1) {
false; return false;
} else { } else {
return slurm_get_rem_time(m_slurm_job_id) < 150; return slurm_get_rem_time(m_slurm_job_id) < 150;
} }
...@@ -72,7 +74,6 @@ stop() ...@@ -72,7 +74,6 @@ stop()
#endif // PUGS_HAS_SLURM #endif // PUGS_HAS_SLURM
} }
parallel::broadcast(stop, 0); parallel::broadcast(stop, 0);
return stop; return stop;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment