claudyus / LXC-Web-Panel

LXC Web Panel improved for lxc 1.0+
http://claudyus.github.io/LXC-Web-Panel/
Other
221 stars 68 forks source link

Feat: Show memory label colors as percentile when CT's memlimit is set #114

Closed marcosx86 closed 8 years ago

marcosx86 commented 8 years ago

Hi,

I suggest the following PR, to show the memory color indicators correctly when the container's memory limit is set. Currently is set to 512/1024MB limit and since containers can have arbitrary memory limits, it's good to have this feature.

Regards.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 28.23% when pulling d965ea61646a88981694cc26f0e70581a6e9614c on marcosx86:master into ef63b4829e3b66eb972bba81dfaa5355973da111 on claudyus:master.

claudyus commented 8 years ago

Thanks for this feat!!