From 525b87d74a10eb28ddaccb3d42085b43cb1d7d3f Mon Sep 17 00:00:00 2001 From: Scott Schneider Date: Tue, 17 Feb 2015 08:41:19 -0800 Subject: [PATCH] Fixing typo in 'percent' --- lib/vmpooler/api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vmpooler/api.rb b/lib/vmpooler/api.rb index ae85360..f1c305f 100644 --- a/lib/vmpooler/api.rb +++ b/lib/vmpooler/api.rb @@ -195,7 +195,7 @@ module Vmpooler result['status'] = 0 end - result['capacity_perecent'] = (result['capacity_current'].to_f / result['capacity_total'].to_f) * 100.0 + result['capacity_percent'] = (result['capacity_current'].to_f / result['capacity_total'].to_f) * 100.0 result['clone_total'] = $redis.hlen('vmpooler__clone__' + Date.today.to_s) if result['clone_total'] > 0