1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-25 12:10:03 +00:00

fix bug when conky displays zero values after time

This commit is contained in:
brightkill 2022-10-08 21:10:30 +03:00 committed by Brenden Matthews
parent 243648e86a
commit 731f3b41db

View File

@ -2375,6 +2375,8 @@ void get_battery_power_draw(char *buffer, unsigned int n, const char *bat) {
result = (double)(current_now*voltage_now)/(double)1000000000000;
snprintf(buffer, n, "%.1f", result);
fclose(current_now_file);
fclose(voltage_now_file);
}
}