Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions schedule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,11 @@ void get_process_info(int selected_algo){

//get maximum of three numbers
int max(int a,int b, int c){
long max,lcom, count, flag=0;
long max=c,lcom, count, flag=0;
if( a>=b && a>=c)
return max=a;
else if(b >=a && b>=c)
else if(b>c)
return max=b;
else if(c>=a && c>=b)
return max=c;
}

//calculating the observation time for scheduling timeline
Expand Down