Skip to content
Snippets Groups Projects
Commit 30716247 authored by Maël Madon's avatar Maël Madon
Browse files

dev: it's a max and not a min in close_session()

parent 60ccb7aa
No related branches found
No related tags found
1 merge request!2Feature "replay with feedback" ready and tested
......@@ -111,7 +111,7 @@ void FBUserThinkTimeOnly::close_session(double date, Session *finished_session)
s->start_time = date + tt_after_finished_session;
else
s->start_time
= std::min(s->start_time, date + tt_after_finished_session);
= std::max(s->start_time, date + tt_after_finished_session);
s->preceding_sessions.erase(finished_session);
......
......@@ -69,7 +69,9 @@ struct Session
double
original_first_submit_time; /* the submit time of the first job in this
session, as in the original trace */
double start_time; /* the submit time of the first job in this session, as in the replay with feedback. Also used to store the projected start time. */
double start_time; /* the submit time of the first job in this session, as
in the replay with feedback. Also used to store the
projected start time. */
unsigned int unfinished_jobs;
std::list<Job *> jobs; // TODO: job Queue instead? To think...
std::map<Session *, double> preceding_sessions; /* pair (Session, t_time) */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment