diff --git a/.gitattributes b/.gitattributes index 3f03919..cfb68b3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -themes/*.css linguist-detectable=false \ No newline at end of file +www/themes/*.css linguist-detectable=false \ No newline at end of file diff --git a/internal/database.go b/internal/database.go index 95eae4f..88efda1 100644 --- a/internal/database.go +++ b/internal/database.go @@ -238,7 +238,7 @@ func calculateUptimePercentages(serviceIndex int) { return 0.0 } - return math.Floor(float64(online)/float64(total)*100*100) / 100 + return math.Floor(float64(online)/float64(total)*100*10) / 10 } service.MinuteUptime = calculateUptime(service.MinuteTimeline) diff --git a/www/error.html b/www/error.html index 4d2a9ef..30419b0 100644 --- a/www/error.html +++ b/www/error.html @@ -9,9 +9,25 @@ @@ -535,6 +598,8 @@