diff --git a/vmware-host-pooler-api b/vmware-host-pooler-api index 573d459..24cd89c 100755 --- a/vmware-host-pooler-api +++ b/vmware-host-pooler-api @@ -51,6 +51,7 @@ get '/dashboard/stats/vcloud/numbers' do result['cloning'] = $redis.get( 'vmware_host_pool__tasks__clone' ) result['booting'] = result['pending'].to_i - result['cloning'].to_i + result['booting'] = 0 if result['booting'] < 0 result['total'] = result['pending'].to_i + result['ready'].to_i + result['running'].to_i + result['completed'].to_i content_type :json