- Update to 3.1

PR:		ports/84407
Submitted by:	Ports Fury
This commit is contained in:
Sergey Matveychuk 2005-08-01 13:36:35 +00:00
parent 24cc7f6069
commit 01eceb9313
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=140657
3 changed files with 11 additions and 11 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= asapm
PORTVERSION= 3.0
PORTVERSION= 3.1
CATEGORIES= sysutils
MASTER_SITES= http://www.tigr.net/afterstep/download/asapm/

View file

@ -1,2 +1,2 @@
MD5 (asapm-3.0.tar.gz) = 417b2432d1989ed503d1117e4464bd22
SIZE (asapm-3.0.tar.gz) = 61354
MD5 (asapm-3.1.tar.gz) = fac44b1fd805d8f3c30d44c05f5ab9d3
SIZE (asapm-3.1.tar.gz) = 63203

View file

@ -1,16 +1,16 @@
--- apm_read.c.orig Tue May 17 06:49:13 2005
+++ apm_read.c Sun May 29 20:38:24 2005
@@ -301,6 +301,9 @@
--- apm_read.c.orig Wed Jul 27 08:23:06 2005
+++ apm_read.c Wed Jul 27 23:15:33 2005
@@ -413,6 +413,9 @@
unsigned int remaining_capacity = 0;
unsigned int present_rate = 0;
+ unsigned int percent;
+ unsigned int time_left;
+
/* First check if there is an ACPI system */
if ((fd = open("/proc/acpi/info", O_RDONLY)) == -1) {
error_handle(1, "open_acpi_info_file");
@@ -503,7 +506,7 @@
if ( ! acpi_available )
return -1;
@@ -617,7 +620,7 @@
* Calculate the percentage and time to full charge
* or discharge based on the reported rate.
*/
@ -19,7 +19,7 @@
last_full_capacity ?
(float)remaining_capacity / (float)last_full_capacity * 100
: 0;
@@ -512,7 +515,6 @@
@@ -626,7 +629,6 @@
++state.update;
}