]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/load-fragment.c
util: introduce physical_memory_scale() to unify how we scale by physical memory
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Jun 2016 18:45:32 +0000 (20:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 14 Jun 2016 18:01:45 +0000 (20:01 +0200)
commitd8cf2ac79b524d7784bccb428295ebc9c5e8548c
tree43a03ab780ccc0b130dc57322c816f99e3f09754
parent799ec13412e2f6649fd69ce4f1ca1674a40039b0
util: introduce physical_memory_scale() to unify how we scale by physical memory

The various bits of code did the scaling all different, let's unify this,
given that the code is not trivial.
src/basic/util.c
src/basic/util.h
src/core/load-fragment.c
src/login/logind-user.c
src/login/logind.c
src/test/test-util.c