docker/libcontainer — pull request #147 by lynxbat (2014-08-07 23:27:56+00:00)
Title: Fixes logic for calculating percentage

Fixes logic for calculating percentage for cgroups.Stats.CpuStats.CpuUsage.PercentUsage

Previous logic divided a uint64 by a uint64 losing precision before multiplying by clock ticks and cpus
This fix maintains precision before converting back to uint64

Docker-DCO-1.1-Signed-off-by: Nicholas Weaver (github: lynxbat)