Fix for presantation issues that never happend occured
This commit is contained in:
parent
891c6dbd0d
commit
092ca4522b
2 changed files with 53 additions and 55 deletions
BIN
bin/App.class
BIN
bin/App.class
Binary file not shown.
|
@ -37,10 +37,12 @@ public class App {
|
||||||
|
|
||||||
int breakPoints = minuteData.length;
|
int breakPoints = minuteData.length;
|
||||||
for (int i = 0; i < duration - 1; i++) {
|
for (int i = 0; i < duration - 1; i++) {
|
||||||
|
if (minuteData[i] != null) {
|
||||||
if (minuteData[i].getCo2Level() < minuteData[i + 1].getCo2Level()) {
|
if (minuteData[i].getCo2Level() < minuteData[i + 1].getCo2Level()) {
|
||||||
breakPoints--;
|
breakPoints--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (duration > 5) {
|
if (duration > 5) {
|
||||||
teacher.addPoints(0, breakPoints, 0);
|
teacher.addPoints(0, breakPoints, 0);
|
||||||
|
@ -200,7 +202,7 @@ public class App {
|
||||||
|
|
||||||
// #region main
|
// #region main
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
try {
|
|
||||||
System.out.println("Calculations in process. Please do not shut off...");
|
System.out.println("Calculations in process. Please do not shut off...");
|
||||||
initializeTeachers();
|
initializeTeachers();
|
||||||
|
|
||||||
|
@ -255,10 +257,6 @@ public class App {
|
||||||
printTeachers(false);
|
printTeachers(false);
|
||||||
interactWithUser();
|
interactWithUser();
|
||||||
|
|
||||||
} catch (Exception e) {
|
|
||||||
System.out.println("Fatal error: " + e.getMessage());
|
|
||||||
} finally {
|
|
||||||
scanner.close();
|
scanner.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue