Your message dated Fri, 13 Dec 2024 07:49:08 +0000
with message-id <e1tm0q8-001wup...@fasolo.debian.org>
and subject line Bug#975682: fixed in acpi 1.7-2
has caused the Debian Bug report #975682,
regarding acpi: please also report the ETA
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
975682: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975682
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: acpi
Version: 1.7-1.1
Severity: wishlist
Tags: upstream patch
X-Debbugs-Cc: t...@mirbsd.de

$ acpi
Battery 0: Discharging, 58%, 01:48:28 remaining

When I run this command multiple times, I cannot see
whether the rate goes up or down, at least not easily
(need to output the time-of-running and calculate it
myself).

With the patch below, this becomes:

$ acpi
Battery 0: Discharging, 57%, 00:53:53 remaining (ca. 2020-11-25T03:22:39+0100)
$ acpi
Battery 0: Discharging, 57%, 01:42:19 remaining (ca. 2020-11-25T04:11:16+0100)

Two mostly-consecutive calls, but the first one still
had the man-db update running on another terminal, so
I can now see easily the discharging rate goes down.

Oh, and please also drop the useless AM_CFLAGS line
from debian/rules, it's not only unused but also wrong ;-)

Thanks in advance for applying and forwarding upstream!


diff -u acpi-1.7/debian/changelog acpi-1.7/debian/changelog
--- acpi-1.7/debian/changelog
+++ acpi-1.7/debian/changelog
@@ -1,3 +1,10 @@
+acpi (1.7-1.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Display estimated end time for {,dis}charging, too
+
+ -- Thorsten Glaser <t...@mirbsd.de>  Wed, 25 Nov 2020 02:24:31 +0100
+
 acpi (1.7-1.1) unstable; urgency=medium
 
   * Non-maintainer upload.
only in patch2:
unchanged:
--- acpi-1.7.orig/acpi.c
+++ acpi-1.7/acpi.c
@@ -26,6 +26,7 @@
 #include <getopt.h>
 #include <string.h>
 #include <errno.h>
+#include <time.h>
 
 #include "list.h"
 #include "acpi.h"
@@ -383,11 +384,19 @@
                }
 
                if (seconds > 0) {
+                   char stm[128];
+                   time_t t = time(NULL) + seconds;
+                   struct tm tm;
+
+                   if (!localtime_r(&t, &tm) || !strftime(stm, sizeof(stm),
+                     " (ca. %FT%T%z)", &tm))
+                       stm[0] = '\0';
+
                    hours = seconds / 3600;
                    seconds -= 3600 * hours;
                    minutes = seconds / 60;
                    seconds -= 60 * minutes;
-                   printf(", %02d:%02d:%02d%s", hours, minutes, seconds, 
poststr);
+                   printf(", %02d:%02d:%02d%s%s", hours, minutes, seconds, 
poststr, stm);
                } else if (poststr != NULL) {
                    printf(", %s", poststr);
                }


-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'oldstable-updates'), (500, 
'buildd-unstable'), (500, 'unstable'), (500, 'oldstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.9.0-3-amd64 (SMP w/2 CPU threads)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages acpi depends on:
ii  libc6  2.31-4

acpi recommends no packages.

acpi suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: acpi
Source-Version: 1.7-2
Done: Andreas Tille <ti...@debian.org>

We believe that the bug you reported is fixed in the latest version of
acpi, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 975...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <ti...@debian.org> (supplier of updated acpi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 03 Dec 2024 07:21:16 +0100
Source: acpi
Architecture: source
Version: 1.7-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Acpi Team <pkg-acpi-de...@lists.alioth.debian.org>
Changed-By: Andreas Tille <ti...@debian.org>
Closes: 975682 1049992 1087364
Changes:
 acpi (1.7-2) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Andreas Tille ]
   * Create repository in Debian team space and set Vcs fields
     Closes: #1087364
   * Standards-Version: 4.7.0 (routine-update)
   * debhelper-compat 13 (routine-update)
   * Remove trailing whitespace in debian/changelog (routine-update)
   * Rules-Requires-Root: no (routine-update)
   * watch file standard 4 (routine-update)
   * Simplify d/rules, remove d/dirs
   * Add loong64 architecture
     Closes: #1049992
   * Propagate hardening options
 .
   [ Thorsten Glaser ]
   * Display estimated end time for {,dis}charging, too
     Closes: #975682
Checksums-Sha1:
 b23dce187515e958cf1cebd3b7a6fca57484fb57 2019 acpi_1.7-2.dsc
 8a1bb7b50f292317d5dd99b73d0774abc6176493 4820 acpi_1.7-2.debian.tar.xz
 724f810f860ae304a9cabf77fb4e8dba45c36f09 6117 acpi_1.7-2_amd64.buildinfo
Checksums-Sha256:
 175eaf01aea850330c1d9317992a0ce7783ad2faac42db997a7313726ad8a4c0 2019 
acpi_1.7-2.dsc
 19e120315906244e16d2b807c2e06b71ad7f54baa523d68f18923f9f3bac6999 4820 
acpi_1.7-2.debian.tar.xz
 2113aecdc1f38f80664f4bcaf1e787f3a6f360c7340baec43628fd439f746eaa 6117 
acpi_1.7-2_amd64.buildinfo
Files:
 909e97cb6259c6d697332abd1e958bff 2019 utils optional acpi_1.7-2.dsc
 823bbbd054e99dd569814616aed5322c 4820 utils optional acpi_1.7-2.debian.tar.xz
 fccb201395d3a2d81e4fd0e762855dfc 6117 utils optional acpi_1.7-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmdOqSURHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtFAQg/+K16sgufDHOsMrAllRcsawCSsJIQ3td3X
oCiecsj5D4SkmujbBuEWgXS8bfXnKXg56DBs1NnViZOD/V7157V79xqnMIQh0WSL
LRHLVXH61X9Z3OD1r4ceRrb//kVKgFek9/zDxjexysELqLuXoD0+Wi2yg9KFUcOK
p7aM1K2btI1oU4148Hg0oXsvBHnYnteBVw4NySjnGlqXvY2caS2QQM7MtpacU73N
ENYk8qivnGfcyPCAkx2Cgn0MzE5ZJtkTsctjGs+/LxlLimckASrTw8lmm3YVEdpV
FgpfKlwRknZcEx/uqudDb/ZaXnMGuiqsVVOTQY3QIOJUxeTBA7QoBov97ivLtukk
ixTtOFzu1DRB7uJA8ZVlF79sTeq0ReEYrA5c9B+1gzTZWNSXZBUcZWsA/mKuVv9A
OPCWOTd26NbUVCAuLz0buE4sXSXsNcakN3+5A2jUR+J0wvwGHlEFLzwZYs0Xs2PF
oF/fW45+qUpV5uRpY/kn0beLzWPlGntO+B4ZUHadzSSEhgxPsyNBjNIWCxh2o6B3
YiEHEWz67FWw14U2eGJMM46pj30qELQBOi6vi+9Bte21Zc/LV/aUaUM9HA12K8sX
9k+/e5rofK2mU+LV0+F/0VrKwG0Uc1OImr9c87dYBlNpwwKhNC6no+8ljyNFfyaD
hxw4YYXeoP4=
=kVxC
-----END PGP SIGNATURE-----

Attachment: pgpbM_YFj6n8T.pgp
Description: PGP signature


--- End Message ---

Reply via email to