Print msg for no arrival (avg)
Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
parent
4ab5b750b8
commit
946e4004ae
@ -532,6 +532,7 @@ public class MakkahCity {
|
|||||||
sum = sum /counter;
|
sum = sum /counter;
|
||||||
int hours = sum / 60;
|
int hours = sum / 60;
|
||||||
int minutes = sum % 60;
|
int minutes = sum % 60;
|
||||||
|
if (hours == 0 && minutes == 0) return "(No arrivals) in last Hour";
|
||||||
return String.format("%2d:%02d", hours,minutes);
|
return String.format("%2d:%02d", hours,minutes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user