Updated output format
This commit is contained in:
parent
6482d30b67
commit
f0e36b9d2e
@ -20,9 +20,9 @@ int main() {
|
||||
}
|
||||
|
||||
if (temp == 0) {
|
||||
printf("Couldn't determine current temperature. Are you in a virtual machine?\n");
|
||||
printf("\033[32mCPU Temperature\n--- -----------\033[0m\n\033[31mCouldn't determine current temperature. Are you in a virtual machine?\033[0m\n");
|
||||
} else {
|
||||
printf("Current temperature: %d°C\n", temp);
|
||||
printf("\033[32mCPU Temperature\n--- -----------\033[0m\n%d°C\n", temp);
|
||||
}
|
||||
|
||||
close(fd);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user