web: Pull docker formatting of CPU and memory into util funcs
web: Pull docker formatting of CPU and memory into util funcs

Once we start displaying this on the details page we need to
have this be cleaner.

Reviewed-by: Marius Vollmer <dfb09a139f04db0099494605fd3e46839b0a540f@redhat.com>
 * Although didn't apply one comment

vbatts/cockpit,mvollmer/cockpit,harishanand95/cockpit,xhad/cockpit,Armstrong1992/cockpit,denysvitali/cockpit,vbatts/cockpit,maxamillion/cockpit,michalskrivanek/cockpit,haiyangd/cockpit_view,Armstrong1992/cockpit,netzvieh/cockpit,SotolitoLabs/cockpit,arilivigni/cockpit,evol262/cockpit,jscotka/cockpit,kkaempf/cockpit,jscotka/cockpit,garrett/cockpit,vbatts/cockpit,larsu/cockpit,vanloswang/cockpit,larsu/cockpit,zigitax/cockpit,andreasn/cockpit,jscotka/cockpit,harishanand95/cockpit,petervo/cockpit,Scribery/cockpit,SotolitoLabs/cockpit,michalskrivanek/cockpit,petervo/cockpit,fridex/cockpit,evol262/cockpit,firebitsbr/cockpit,Scribery/cockpit,matobet/cockpit,moraleslazaro/cockpit,firebitsbr/cockpit,matobet/cockpit,vanloswang/cockpit,moraleslazaro/cockpit,cockpit-project/cockpit,moraleslazaro/cockpit,petervo/cockpit,michalskrivanek/cockpit,fridex/cockpit,Armstrong1992/cockpit,petervo/cockpit,xhad/cockpit,petervo/cockpit,vbatts/cockpit,darioajr/cockpit,Scribery/cockpit,maxamillion/cockpit,dperpeet/cockpit,andreasn/cockpit,haiyangd/cockpit_view,SotolitoLabs/cockpit,vanloswang/cockpit,petervo/cockpit,fridex/cockpit,jscotka/cockpit,kkaempf/cockpit,Scribery/cockpit,darioajr/cockpit,stefwalter/cockpit,stefwalter/cockpit,stefwalter/cockpit,matobet/cockpit,arilivigni/cockpit,larskarlitski/cockpit,cockpituous/cockpit,dperpeet/cockpit,cockpit-project/cockpit,larsu/cockpit,mareklibra/cockpit,martinpitt/cockpit,larsu/cockpit,FireDrunk/cockpit,zigitax/cockpit,haiyangd/cockpit_view,mvollmer/cockpit,xhad/cockpit,maxamillion/cockpit,darioajr/cockpit,mareklibra/cockpit,larskarlitski/cockpit,dperpeet/cockpit,deryni/cockpit,deryni/cockpit,michalskrivanek/cockpit,nmav/cockpit,nmav/cockpit,moolitayer/cockpit,nmav/cockpit,mvollmer/cockpit,xhad/cockpit,vanloswang/cockpit,jscotka/cockpit,andreasn/cockpit,firebitsbr/cockpit,evol262/cockpit,firebitsbr/cockpit,sgallagher/cockpit,garrett/cockpit,xhad/cockpit,arilivigni/cockpit,SotolitoLabs/cockpit,garrett/cockpit,denysvitali/cockpit,mareklibra/cockpit,arilivigni/cockpit,netzvieh/cockpit,jscotka/cockpit,xhad/cockpit,larskarlitski/cockpit,arilivigni/cockpit,stefwalter/cockpit,evol262/cockpit,dperpeet/cockpit,martinpitt/cockpit,Thermionix/cockpit,deryni/cockpit,garrett/cockpit,Scribery/cockpit,fridex/cockpit,vanloswang/cockpit,deryni/cockpit,cockpit-project/cockpit,deryni/cockpit,moolitayer/cockpit,sgallagher/cockpit,andreasn/cockpit,deryni/cockpit,FireDrunk/cockpit,FireDrunk/cockpit,deryni/cockpit,netzvieh/cockpit,petervo/cockpit,larskarlitski/cockpit,moolitayer/cockpit,sgallagher/cockpit,matobet/cockpit,netzvieh/cockpit,stefwalter/cockpit,xhad/cockpit,andreasn/cockpit,moolitayer/cockpit,larskarlitski/cockpit,dperpeet/cockpit,martinpitt/cockpit,dperpeet/cockpit,maxamillion/cockpit,larsu/cockpit,Armstrong1992/cockpit,kkaempf/cockpit,zigitax/cockpit,mareklibra/cockpit,sub-mod/cockpit,Thermionix/cockpit,fridex/cockpit,stefwalter/cockpit,denysvitali/cockpit,firebitsbr/cockpit,moraleslazaro/cockpit,zigitax/cockpit,Scribery/cockpit,darioajr/cockpit,netzvieh/cockpit,sub-mod/cockpit,vbatts/cockpit,Thermionix/cockpit,kkaempf/cockpit,cockpituous/cockpit,maxamillion/cockpit,michalskrivanek/cockpit,sgallagher/cockpit,cockpituous/cockpit,matobet/cockpit,moolitayer/cockpit,martinpitt/cockpit,nmav/cockpit,stefwalter/cockpit,mvollmer/cockpit,SotolitoLabs/cockpit,mvollmer/cockpit,SotolitoLabs/cockpit,larsu/cockpit,sgallagher/cockpit,evol262/cockpit,haiyangd/cockpit_view,Thermionix/cockpit,sgallagher/cockpit,matobet/cockpit,FireDrunk/cockpit,zigitax/cockpit,sub-mod/cockpit,mareklibra/cockpit,vanloswang/cockpit,moraleslazaro/cockpit,harishanand95/cockpit,evol262/cockpit,fridex/cockpit,darioajr/cockpit,denysvitali/cockpit,Thermionix/cockpit,SotolitoLabs/cockpit,cockpit-project/cockpit,larskarlitski/cockpit,dperpeet/cockpit,mareklibra/cockpit,garrett/cockpit,michalskrivanek/cockpit,cockpituous/cockpit,sub-mod/cockpit,andreasn/cockpit,FireDrunk/cockpit,Armstrong1992/cockpit,cockpituous/cockpit,harishanand95/cockpit,harishanand95/cockpit,kkaempf/cockpit,cockpituous/cockpit,arilivigni/cockpit,vbatts/cockpit,cockpit-project/cockpit,martinpitt/cockpit,Thermionix/cockpit,sgallagher/cockpit,denysvitali/cockpit,harishanand95/cockpit,vanloswang/cockpit,larskarlitski/cockpit,nmav/cockpit,arilivigni/cockpit,harishanand95/cockpit,haiyangd/cockpit_view,sub-mod/cockpit,moraleslazaro/cockpit,michalskrivanek/cockpit,mareklibra/cockpit,Scribery/cockpit,netzvieh/cockpit,andreasn/cockpit,moraleslazaro/cockpit