Skip to content

Commit 15cb27b

Browse files
Update ThymeleafWebController.java
1 parent e843cf7 commit 15cb27b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/main/java/de/eldecker/dhbw/spring/sla/thymeleaf/ThymeleafWebController.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,16 @@ public String slaWertUmrechnen( @PathVariable String slaWertProzent,
5959
LOG.info( "Ausfallzeilen für SLA=\"%s\": " + ausfallzeiten, slaWertProzent );
6060

6161
model.addAttribute( "slaProzentWert" , slaDouble );
62-
model.addAttribute( "maxAusfallProJahr" , ausfallzeiten.ausfallzeitProJahr() );
63-
64-
model.addAttribute( "maxAusfallProWoche", ausfallzeiten.ausfallzeitProWoche() );
65-
66-
model.addAttribute( "maxAusfallProTag" , ausfallzeiten.ausfallzeitProTag() );
62+
model.addAttribute( "maxAusfallProJahr" , ausfallzeiten.ausfallzeitProJahr() );
63+
model.addAttribute( "maxAusfallProWoche", ausfallzeiten.ausfallzeitProWoche() );
64+
model.addAttribute( "maxAusfallProTag" , ausfallzeiten.ausfallzeitProTag() );
6765

6866
return "ergebnis"; // template "ergebnis.html"
6967
}
7068
catch ( Exception ex ) {
7169

7270
final String fehlerText =
73-
String.format( "Fehler für SLA-Wert \"%s\": " + ex, slaWertProzent );
71+
String.format( "Fehler für SLA-Wert \"%s\": " + ex, slaWertProzent );
7472

7573
LOG.error( fehlerText, ex );
7674

0 commit comments

Comments
 (0)