fixed issue with sys.uptime being printed as 0

This commit is contained in:
dqnk 2021-04-07 13:17:29 +02:00
parent 7a9018f664
commit 554b9fefae

View file

@ -143,6 +143,8 @@ int pkgman() { // this is just a function that returns the total of installed pa
} }
void print_info() { void print_info() {
// store sys info in the sys again
sysinfo(&sys);
// print collected info - from host to cpu info // print collected info - from host to cpu info
printf( "\033[9A\033[18C%s%s%s@%s\n", printf( "\033[9A\033[18C%s%s%s@%s\n",
NORMAL, BOLD, user, host); NORMAL, BOLD, user, host);