From 7465df68b7ac8f193e856a7907574ad8c3f5deda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Muller?= Date: Mon, 12 Aug 2024 11:13:06 +0200 Subject: [PATCH] Fix unit conversion --- .../demo/shared/ui/player/metrics/StatsForNerdsViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillarbox-demo-shared/src/main/java/ch/srgssr/pillarbox/demo/shared/ui/player/metrics/StatsForNerdsViewModel.kt b/pillarbox-demo-shared/src/main/java/ch/srgssr/pillarbox/demo/shared/ui/player/metrics/StatsForNerdsViewModel.kt index 7071e889a..555485497 100644 --- a/pillarbox-demo-shared/src/main/java/ch/srgssr/pillarbox/demo/shared/ui/player/metrics/StatsForNerdsViewModel.kt +++ b/pillarbox-demo-shared/src/main/java/ch/srgssr/pillarbox/demo/shared/ui/player/metrics/StatsForNerdsViewModel.kt @@ -197,7 +197,7 @@ class StatsForNerdsViewModel(application: Application) : AndroidViewModel(applic } companion object { - private const val TO_MEGA = 1_000_000f + private const val TO_MEGA = 1024f * 1024f private const val TO_NEXT_UNIT = 1_000f /**