X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogin%2Flogind.c;h=03b77539bdf33f0f012042ab32d11446ea67956d;hb=f39d4a08e746e703d562076a0f622eb91dbdcd3e;hp=fd113b3e79437db5451b63eaeedaf753dcf09ff9;hpb=f9cd6be10ece07e10488c05e270a0b5860779864;p=elogind.git diff --git a/src/login/logind.c b/src/login/logind.c index fd113b3e7..03b77539b 100644 --- a/src/login/logind.c +++ b/src/login/logind.c @@ -60,6 +60,8 @@ Manager *manager_new(void) { m->idle_action = HANDLE_IGNORE; m->idle_action_not_before_usec = now(CLOCK_MONOTONIC); + m->runtime_dir_size = PAGE_ALIGN((size_t) (physical_memory() / 10)); /* 10% */ + m->devices = hashmap_new(string_hash_func, string_compare_func); m->seats = hashmap_new(string_hash_func, string_compare_func); m->sessions = hashmap_new(string_hash_func, string_compare_func);