def handleSize(size)
            if size > 1024 * 1024
               return format("%.2f",(size.to_f/(1024*1024))) + "MB"
            elsif size > 1024
               return format("%.2f",(size.to_f/1024)) + "KB"
            else
               return size.to_s + "B"
            end
         end
def handleSize(size)
            if size > 1024 * 1024
               return format("%.2f",(size.to_f/(1024*1024))) + "MB"
            elsif size > 1024
               return format("%.2f",(size.to_f/1024)) + "KB"
            else
               return size.to_s + "B"
            end
         end
大小格式化