1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 18:45:10 +00:00

Print uid in top if user doesnt exist.

This commit is contained in:
Paweł Bielecki 2020-02-26 11:32:34 +01:00 committed by Brenden Matthews
parent 5651cf1529
commit b2a5a47a28

View File

@ -517,7 +517,7 @@ static void print_top_user(struct text_object *obj, char *p,
if (pw != nullptr) { if (pw != nullptr) {
snprintf(p, p_max_size, "%.8s", pw->pw_name); snprintf(p, p_max_size, "%.8s", pw->pw_name);
} else { } else {
NORM_ERR("The uid doesn't exist"); snprintf(p, p_max_size, "%d", td->list[td->num]->uid);
} }
} }