From cc1e2eec207a1acfdbe14746ad12ea3eb39e2a8b Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 30 Aug 2016 13:45:44 -0700 Subject: [PATCH] Fix size tag --- app/components/tags/SizeTag.elm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/tags/SizeTag.elm b/app/components/tags/SizeTag.elm index 6656a6ea2c..b68d685b92 100644 --- a/app/components/tags/SizeTag.elm +++ b/app/components/tags/SizeTag.elm @@ -26,10 +26,10 @@ view bytes = ( size, unit ) = if bytes < 1024 then ( bytes, "B" ) - else if bytes < 1024 * 2024 then - ( bytes / 1024, "B" ) + else if bytes < 1024 * 1024 then + ( bytes / 1024, "KB" ) else if bytes < 1024 * 1024 * 1024 then - ( bytes / 1024 / 1024, "B" ) + ( bytes / 1024 / 1024, "MB" ) else ( bytes / 1024 / 1024 / 1024, "GB" ) in