From 2eeca91cc049b04afa9aa3d2053e1d9bd2700529 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Mon, 18 Aug 2014 17:56:23 -0500 Subject: [PATCH] wmacpi: Bump to version 2.0. Source obtained from http://sourceforge.net/projects/wmacpi/files/. 2004 October 24 2.0 Upped version number to 2.0. Small typo fixes. wmacpi 2.0 goes gold . . . --- wmacpi/ChangeLog | 7 +++++++ wmacpi/libacpi.c | 3 +-- wmacpi/libacpi.h | 1 + wmacpi/wmacpi.1 | 5 +---- wmacpi/wmacpi.c | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/wmacpi/ChangeLog b/wmacpi/ChangeLog index b54f1e4..ebdcb2a 100644 --- a/wmacpi/ChangeLog +++ b/wmacpi/ChangeLog @@ -1,3 +1,10 @@ +2004 October 24 2.0 + Upped version number to 2.0. + + Small typo fixes. + + wmacpi 2.0 goes gold . . . + 2004 September 28 2.0rc1 Added support for switching to capacity mode automatically, on detecting dodgy reports from the battery. diff --git a/wmacpi/libacpi.c b/wmacpi/libacpi.c index 28557a2..6ea74d6 100644 --- a/wmacpi/libacpi.c +++ b/wmacpi/libacpi.c @@ -409,7 +409,7 @@ static int calc_remaining_percentage(int batt) } /* check to see if we've been getting bad data from the batteries - if - * we get more than some limit we swith to using the remaining capacity + * we get more than some limit we switch to using the remaining capacity * for the calculations. */ static enum rtime_mode check_rt_mode(global_t *globals) { @@ -477,7 +477,6 @@ static int calc_charge_time_rate(int batt) * mode, and then use that to estimate charge time. This will * necessarily be even less accurate than it is for remaining time, but * it's just as neessary . . . */ -#define CAP_SAMPLES (SAMPLES*10) static int calc_charge_time_cap(int batt) { static float cap_samples[CAP_SAMPLES]; diff --git a/wmacpi/libacpi.h b/wmacpi/libacpi.h index e98dee3..7cdaf5d 100644 --- a/wmacpi/libacpi.h +++ b/wmacpi/libacpi.h @@ -8,6 +8,7 @@ #define MAX_NAME 128 #define MAXBATT 8 #define SAMPLES 50 +#define CAP_SAMPLES (SAMPLES*10) typedef enum { REMAIN, diff --git a/wmacpi/wmacpi.1 b/wmacpi/wmacpi.1 index 304a423..070a219 100644 --- a/wmacpi/wmacpi.1 +++ b/wmacpi/wmacpi.1 @@ -1,4 +1,4 @@ -.TH WMACPI 1 "April 15 2004" +.TH WMACPI 1 "August 15 2004" .SH NAME wmacpi \- Battery status monitor for systems supporting ACPI .SH NAME @@ -154,9 +154,6 @@ Print the version information. .B \-h Display help. .TP -.SH SEE ALSO -.BR wmapm (1) -.br .SH AUTHOR .B wmacpi was originally written by Tim Copperfield , then diff --git a/wmacpi/wmacpi.c b/wmacpi/wmacpi.c index 07cd80d..46c3f9e 100644 --- a/wmacpi/wmacpi.c +++ b/wmacpi/wmacpi.c @@ -37,7 +37,7 @@ #include "libacpi.h" #include "wmacpi.h" -#define WMACPI_VER "2.0rc1" +#define WMACPI_VER "2.0" /* main pixmap */ #ifdef LOW_COLOR