From 73a3caeee59438d9285915a26b8674399d5f28ba Mon Sep 17 00:00:00 2001 From: masakih Date: Thu, 1 Feb 2018 23:22:03 +0900 Subject: [PATCH] =?utf8?q?=E3=82=B9=E3=83=9A=E3=83=AB=E3=83=9F=E3=82=B9?= =?utf8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- KCD/SuppliesCell.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/KCD/SuppliesCell.swift b/KCD/SuppliesCell.swift index b43eec69..7ab74191 100644 --- a/KCD/SuppliesCell.swift +++ b/KCD/SuppliesCell.swift @@ -103,11 +103,11 @@ final class SuppliesCell: NSCell { if value >= max { return 10 } - let retio = ceil( Double(value) / Double(max) * Double(numberOfCell) ) + let ratio = ceil( Double(value) / Double(max) * Double(numberOfCell) ) - if retio > 9 { return 9 } + if ratio > 9 { return 9 } - return Int(retio) + return Int(ratio) } private func statusColor(withValue value: Int, max: Int) -> NSColor { -- 2.11.0