GoogleCloudPlatform/kubernetes — pull request #2168 by claire921 (2014-11-05 05:47:15+00:00)
Title: Refactore calculateOccupancy in pkg/scheduler

This pull request make `calculateOccupancy` use the value directly instead of getting the value by the index.

greatly improve the readability of the `calculateOccupancy` function.