reverted format duration change
All checks were successful
Tests / Run Go Tests (push) Successful in 1m28s

This commit is contained in:
2025-11-30 19:59:22 +01:00
parent f5a4f95697
commit db14d6070a
2 changed files with 1 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ jobs:
restore-keys: |- restore-keys: |-
arbeitszeitmessung- arbeitszeitmessung-
- name: Run Go Tests - name: Run Go Tests
run: cd Backend && mkdir .test && go test ./... run: cd Backend && mkdir .test && go test ./... -coverprofile=.test/coverage.out -json > .test/report.json
- name: Verify coverage report exists - name: Verify coverage report exists
run: | run: |
if [ -f "Backend/.test/coverage.out" ]; then if [ -f "Backend/.test/coverage.out" ]; then

View File

@@ -31,7 +31,6 @@ func FormatDuration(d time.Duration) string {
// Converts duration to string // Converts duration to string
func FormatDurationFill(d time.Duration, fill bool) string { func FormatDurationFill(d time.Duration, fill bool) string {
return fmt.Sprintf("%.1f", d.Hours())
hours := int(d.Abs().Hours()) hours := int(d.Abs().Hours())
minutes := int(d.Abs().Minutes()) % 60 minutes := int(d.Abs().Minutes()) % 60
sign := "" sign := ""