Skip to content

Commit f056435

Browse files
authored
Merge pull request #32 from Hub-of-all-Things/2.3.0
2.3.0
2 parents dd62fd3 + b28417c commit f056435

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hat/app/org/hatdex/hat/api/controllers/SystemStatus.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ class SystemStatus @Inject() (
9292
HatStatus("File Storage", StatusKind.Numeric(fsa._1, Some(fsa._2))),
9393
HatStatus("Database Storage Used", StatusKind.Numeric(dbsu._1, Some(dbsu._2))),
9494
HatStatus("File Storage Used", StatusKind.Numeric(fsu._1, Some(fsu._2))),
95-
HatStatus("Database Storage Used Share", StatusKind.Numeric(Math.round(dbsize.toDouble / dbStorageAllowance), Some("%"))),
96-
HatStatus("File Storage Used Share", StatusKind.Numeric(Math.round(fileSize.toDouble / fileStorageAllowance), Some("%"))))
95+
HatStatus("Database Storage Used Share", StatusKind.Numeric(Math.round(dbsize.toDouble / dbStorageAllowance * 100.0), Some("%"))),
96+
HatStatus("File Storage Used Share", StatusKind.Numeric(Math.round(fileSize.toDouble / fileStorageAllowance * 100.0), Some("%"))))
9797
}
9898

9999
eventualStatus map { stats =>

0 commit comments

Comments
 (0)