Skip to content

Commit

Permalink
Fix Restzeitberechnung.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaPePeR committed Sep 30, 2013
1 parent 09ea784 commit 0d7e27b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gui/ZeitRechner.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ private void recalculate(Zeit zeit)
kontoVeraenderungPrefix='+';
kontoveraenderung=produktivZeit.sub(Config.minProduktivForPlus);
}

if(startZeit.add(Config.minGesamtZeitForPlus).nach(uhr)) {
restZeit = startZeit.add(Config.minGesamtZeitForPlus).sub(uhr);
if(gesamtZeit.compareTo(Config.minGesamtZeitForPlus) > 0) { //TODO: Fehler in CompareTo!
restZeit = Config.minGesamtZeitForPlus.sub(gesamtZeit);
} else {
restZeit = new Zeit(0);
}
Expand Down

0 comments on commit 0d7e27b

Please sign in to comment.