]> git.ipfire.org Git - ipfire-2.x.git/commit
header.pl: only get memory consumption when service is running
authorRobin Roevens <robin.roevens@disroot.org>
Tue, 10 Sep 2024 21:32:32 +0000 (23:32 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 11 Sep 2024 09:45:46 +0000 (09:45 +0000)
commitd335cc9592afa74f219bbf564b01c612ea336e77
treed0048d564dad26c6f27f16d4eb52f01b0dae0e3a
parenta66263b4f5c746c3c7f7c320e45c3ac78811c7a8
header.pl: only get memory consumption when service is running

It probably doesn't matter much as the get_memory_consumption function just returns 0 when no pids are found. But it shouldn't even try as the mem var is never used when the service is not running.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/header.pl