mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 04:17:33 +00:00
fix bug when conky displays zero values after time
This commit is contained in:
parent
243648e86a
commit
731f3b41db
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user