Fix the failing tests.
This commit is contained in:
@ -112,7 +112,7 @@ public class Prisoner {
|
||||
|
||||
/** Gets the remaining time the prisoner has in minutes. */
|
||||
public long getRemainingTimeInMinutes() {
|
||||
return TimeUnit.MILLISECONDS.toMinutes(time);
|
||||
return TimeUnit.MINUTES.convert(time, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
|
||||
/** Gets the remaining time the prison has in minutes except only in int format. */
|
||||
|
Reference in New Issue
Block a user