Fix for presantation issues that never happend occured

This commit is contained in:
sageTheDM 2024-12-02 19:15:07 +01:00
parent 891c6dbd0d
commit 092ca4522b
2 changed files with 53 additions and 55 deletions

Binary file not shown.

View file

@ -37,10 +37,12 @@ public class App {
int breakPoints = minuteData.length;
for (int i = 0; i < duration - 1; i++) {
if (minuteData[i] != null) {
if (minuteData[i].getCo2Level() < minuteData[i + 1].getCo2Level()) {
breakPoints--;
}
}
}
if (duration > 5) {
teacher.addPoints(0, breakPoints, 0);
@ -200,7 +202,7 @@ public class App {
// #region main
public static void main(String[] args) {
try {
System.out.println("Calculations in process. Please do not shut off...");
initializeTeachers();
@ -255,10 +257,6 @@ public class App {
printTeachers(false);
interactWithUser();
} catch (Exception e) {
System.out.println("Fatal error: " + e.getMessage());
} finally {
scanner.close();
}
}
}