The unified diff between revisions [22b150e2..] and [642423d0..] is displayed below. It can also be downloaded as a raw diff.

#
#
# patch "acpi.c"
#  from [6037aa3f0934d1c667623d425ccc47befe0c9ba2]
#    to [c060195ac7952a38f59e61fa9704aef1fb8b6741]
#
============================================================
--- acpi.c	6037aa3f0934d1c667623d425ccc47befe0c9ba2
+++ acpi.c	c060195ac7952a38f59e61fa9704aef1fb8b6741
@@ -332,7 +332,8 @@ void print_battery_information(struct li
 				seconds = 3600 * (float)remaining_capacity / present_rate;
 				poststr = " remaining";
 			} else {
-				seconds = 0;
+				poststr = NULL;
+				seconds = -1;
 			}
 			if (seconds > 0) {
 				hours = seconds / 3600;
@@ -340,7 +341,7 @@ void print_battery_information(struct li
 				minutes = seconds / 60;
 				seconds -= 60 * minutes;
 				printf(", %02d:%02d:%02d%s", hours, minutes, seconds, poststr);
-			} else if (seconds < 0) {
+			} else if ((seconds < 0) && (poststr != NULL)) {
 				printf(", %s", poststr);
 			}
 			printf("\n");