• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Never give up


Commit MetaInfo

Revisiónbdcc7d26bd2c16e329251cd3426123f798f94c9d (tree)
Tiempo2013-09-23 14:33:53
AutorHMML <hmml3939@gmai...>
CommiterHMML

Log Message

Fix bytesize formatting (kb).

Cambiar Resumen

Diferencia incremental

--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -30,7 +30,7 @@ module ApplicationHelper
3030 size.blank? and return ""
3131 if size > 1024*1024
3232 "#{'%.2f' % (size/1024.0/1024)} MB"
33- elsif size > 1024*1024
33+ elsif size > 1024
3434 "#{'%.1f' % (size/1024.0)} KB"
3535 else
3636 "#{size} B"