commit powerstat for openSUSE:Factory

2020-08-24 Thread root
Hello community,

here is the log from the commit of package powerstat for openSUSE:Factory 
checked in at 2020-08-24 15:13:27

Comparing /work/SRC/openSUSE:Factory/powerstat (Old)
 and  /work/SRC/openSUSE:Factory/.powerstat.new.3399 (New)


Package is "powerstat"

Mon Aug 24 15:13:27 2020 rev:10 rq:828656 version:0.02.24

Changes:

--- /work/SRC/openSUSE:Factory/powerstat/powerstat.changes  2020-05-28 
09:21:56.177501332 +0200
+++ /work/SRC/openSUSE:Factory/.powerstat.new.3399/powerstat.changes
2020-08-24 15:13:54.874710165 +0200
@@ -1,0 +2,6 @@
+Mon Aug 17 20:22:04 UTC 2020 - Dirk Mueller 
+
+- update to 0..02.24
+  * no changelog available
+
+---

Old:

  powerstat-0.02.23.tar.gz

New:

  powerstat-0.02.24.tar.gz



Other differences:
--
++ powerstat.spec ++
--- /var/tmp/diff_new_pack.B7mza5/_old  2020-08-24 15:13:55.582710510 +0200
+++ /var/tmp/diff_new_pack.B7mza5/_new  2020-08-24 15:13:55.582710510 +0200
@@ -18,7 +18,7 @@
 
 
 Name:   powerstat
-Version:0.02.23
+Version:0.02.24
 Release:0
 Summary:Laptop power measuring tool
 License:GPL-2.0-only

++ powerstat-0.02.23.tar.gz -> powerstat-0.02.24.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.23/Makefile 
new/powerstat-0.02.24/Makefile
--- old/powerstat-0.02.23/Makefile  2020-05-16 00:55:19.0 +0200
+++ new/powerstat-0.02.24/Makefile  2020-07-04 22:36:39.0 +0200
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.23
+VERSION=0.02.24
 
 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"'
 




commit powerstat for openSUSE:Factory

2020-05-28 Thread root
Hello community,

here is the log from the commit of package powerstat for openSUSE:Factory 
checked in at 2020-05-28 09:20:47

Comparing /work/SRC/openSUSE:Factory/powerstat (Old)
 and  /work/SRC/openSUSE:Factory/.powerstat.new.3606 (New)


Package is "powerstat"

Thu May 28 09:20:47 2020 rev:9 rq:809677 version:0.02.23

Changes:

--- /work/SRC/openSUSE:Factory/powerstat/powerstat.changes  2020-03-08 
22:24:58.464108449 +0100
+++ /work/SRC/openSUSE:Factory/.powerstat.new.3606/powerstat.changes
2020-05-28 09:21:56.177501332 +0200
@@ -1,0 +2,7 @@
+Sat May 16 16:19:56 UTC 2020 - Martin Hauke 
+
+- Update to version 0.02.23
+  * Makefile: respect standard prefix= variable (LP: #1877744)
+  * zero the ws struct to clear static analysis warnings
+
+---

Old:

  powerstat-0.02.22.tar.gz

New:

  powerstat-0.02.23.tar.gz



Other differences:
--
++ powerstat.spec ++
--- /var/tmp/diff_new_pack.5aEfvX/_old  2020-05-28 09:21:56.925502982 +0200
+++ /var/tmp/diff_new_pack.5aEfvX/_new  2020-05-28 09:21:56.929502991 +0200
@@ -18,7 +18,7 @@
 
 
 Name:   powerstat
-Version:0.02.22
+Version:0.02.23
 Release:0
 Summary:Laptop power measuring tool
 License:GPL-2.0-only

++ powerstat-0.02.22.tar.gz -> powerstat-0.02.23.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.22/Makefile 
new/powerstat-0.02.23/Makefile
--- old/powerstat-0.02.22/Makefile  2020-02-26 15:34:32.0 +0100
+++ new/powerstat-0.02.23/Makefile  2020-05-16 00:55:19.0 +0200
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.22
+VERSION=0.02.23
 
 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"'
 
@@ -30,9 +30,10 @@
-Wno-missing-braces -Wno-sign-compare -Wno-multichar
 endif
 
-BINDIR=/usr/bin
-MANDIR=/usr/share/man/man8
-BASHDIR=/usr/share/bash-completion/completions
+prefix=/usr
+BINDIR=$(prefix)/bin
+MANDIR=$(prefix)/share/man/man8
+BASHDIR=$(prefix)/share/bash-completion/completions
 
 powerstat: powerstat.o
$(CC) $(CFLAGS) $< -lm -o $@ $(LDFLAGS)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.22/powerstat.c 
new/powerstat-0.02.23/powerstat.c
--- old/powerstat-0.02.22/powerstat.c   2020-02-26 15:34:32.0 +0100
+++ new/powerstat-0.02.23/powerstat.c   2020-05-16 00:55:19.0 +0200
@@ -491,6 +491,8 @@
int fd = 0;
 struct winsize ws;
 
+   (void)memset(&ws, 0, sizeof(ws));
+
 /* if tty and we can get a sane width, return it */
 if (isatty(fd) &&
 (ioctl(fd, TIOCGWINSZ, &ws) != -1) &&




commit powerstat for openSUSE:Factory

2020-03-08 Thread root
Hello community,

here is the log from the commit of package powerstat for openSUSE:Factory 
checked in at 2020-03-08 22:24:46

Comparing /work/SRC/openSUSE:Factory/powerstat (Old)
 and  /work/SRC/openSUSE:Factory/.powerstat.new.26092 (New)


Package is "powerstat"

Sun Mar  8 22:24:46 2020 rev:8 rq:782690 version:0.02.22

Changes:

--- /work/SRC/openSUSE:Factory/powerstat/powerstat.changes  2020-01-15 
16:45:55.005203980 +0100
+++ /work/SRC/openSUSE:Factory/.powerstat.new.26092/powerstat.changes   
2020-03-08 22:24:58.464108449 +0100
@@ -1,0 +2,16 @@
+Sun Mar  8 13:21:25 UTC 2020 - Martin Hauke 
+
+- Supplement against bash-completion, not bash
+
+---
+Sun Mar  8 12:54:37 UTC 2020 - Martin Hauke 
+
+- Drop SLE12 compat ifdef
+
+---
+Wed Feb 26 18:55:52 UTC 2020 - Martin Hauke 
+
+- Update to version 0.02.22
+  * Add bash command completion script
+
+---

Old:

  powerstat-0.02.21.tar.gz

New:

  powerstat-0.02.22.tar.gz



Other differences:
--
++ powerstat.spec ++
--- /var/tmp/diff_new_pack.EONc6I/_old  2020-03-08 22:24:58.924108733 +0100
+++ /var/tmp/diff_new_pack.EONc6I/_new  2020-03-08 22:24:58.924108733 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package powerstat
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 # Copyright (c) 2017, Martin Hauke 
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,12 +18,12 @@
 
 
 Name:   powerstat
-Version:0.02.21
+Version:0.02.22
 Release:0
 Summary:Laptop power measuring tool
 License:GPL-2.0-only
 Group:  System/Monitoring
-URL:http://kernel.ubuntu.com/~cking/powerstat/
+URL:https://kernel.ubuntu.com/~cking/powerstat/
 Source: 
http://kernel.ubuntu.com/~cking/tarballs/%{name}/%{name}-%{version}.tar.gz
 
 %description
@@ -32,12 +32,23 @@
 statistics. At the end of a run, powerstat will calculate the average,
 standard deviation and min/max of the gathered data.
 
+%package bash-completion
+Summary:Bash Completion for %{name}
+Group:  System/Benchmark
+Requires:   %{name} = %{version}
+Requires:   bash-completion
+Supplements:(powerstat and bash-completion)
+BuildArch:  noarch
+
+%description bash-completion
+Bash completion script for %{name}.
+
 %prep
 %setup -q
 
 %build
 export CFLAGS="%{optflags}"
-make %{?_smp_mflags}
+%make_build
 
 %install
 %make_install
@@ -47,4 +58,7 @@
 %{_bindir}/powerstat
 %{_mandir}/man8/powerstat.8%{?ext_man}
 
+%files bash-completion
+%{_datadir}/bash-completion/completions/%{name}
+
 %changelog

++ powerstat-0.02.21.tar.gz -> powerstat-0.02.22.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.21/Makefile 
new/powerstat-0.02.22/Makefile
--- old/powerstat-0.02.21/Makefile  2020-01-13 19:59:45.0 +0100
+++ new/powerstat-0.02.22/Makefile  2020-02-26 15:34:32.0 +0100
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.21
+VERSION=0.02.22
 
 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"'
 
@@ -32,6 +32,7 @@
 
 BINDIR=/usr/bin
 MANDIR=/usr/share/man/man8
+BASHDIR=/usr/share/bash-completion/completions
 
 powerstat: powerstat.o
$(CC) $(CFLAGS) $< -lm -o $@ $(LDFLAGS)
@@ -43,7 +44,7 @@
rm -rf powerstat-$(VERSION)
mkdir powerstat-$(VERSION)
cp -rp Makefile mascot powerstat.c powerstat.8 COPYING snap \
-   .travis.yml powerstat-$(VERSION)
+   .travis.yml bash-completion powerstat-$(VERSION)
tar -zcf powerstat-$(VERSION).tar.gz powerstat-$(VERSION)
rm -rf powerstat-$(VERSION)
 
@@ -56,3 +57,5 @@
cp powerstat ${DESTDIR}${BINDIR}
mkdir -p ${DESTDIR}${MANDIR}
cp powerstat.8.gz ${DESTDIR}${MANDIR}
+   mkdir -p ${DESTDIR}${BASHDIR}
+   cp bash-completion/powerstat ${DESTDIR}${BASHDIR}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.21/bash-completion/powerstat 
new/powerstat-0.02.22/bash-completion/powerstat
--- old/powerstat-0.02.21/bash-completion/powerstat 1970-01-01 
01:00:00.0 +0100
+++ new/powerstat-0.02.22/bash-completion/powerstat 2020-02-26 
15:34:32.0 +0100
@@ -0,0 +1,44 @@
+# powerstat tab completion for bash.
+#
+# Copyright (C) 2020 Canonical
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of

commit powerstat for openSUSE:Factory

2020-01-15 Thread root
Hello community,

here is the log from the commit of package powerstat for openSUSE:Factory 
checked in at 2020-01-15 16:15:04

Comparing /work/SRC/openSUSE:Factory/powerstat (Old)
 and  /work/SRC/openSUSE:Factory/.powerstat.new.30080 (New)


Package is "powerstat"

Wed Jan 15 16:15:04 2020 rev:7 rq:764447 version:0.02.21

Changes:

--- /work/SRC/openSUSE:Factory/powerstat/powerstat.changes  2018-07-25 
16:13:12.205933717 +0200
+++ /work/SRC/openSUSE:Factory/.powerstat.new.30080/powerstat.changes   
2020-01-15 16:45:55.005203980 +0100
@@ -1,0 +2,19 @@
+Mon Jan 13 22:00:30 UTC 2020 - Martin Hauke 
+
+- Update to version 0.02.21
+  * No functional changes
+
+---
+Tue Aug 27 09:46:58 UTC 2019 - Martin Hauke 
+
+- Update to version 0.02.20
+  * No functional changes
+
+---
+Sun Jul  7 18:41:19 UTC 2019 - Martin Hauke 
+
+- update to version 0.02.18
+  * Update copyright year
+  * Make struct cpu_info pack more efficiently
+
+---

Old:

  powerstat-0.02.18.tar.gz

New:

  powerstat-0.02.21.tar.gz



Other differences:
--
++ powerstat.spec ++
--- /var/tmp/diff_new_pack.9zlFHa/_old  2020-01-15 16:45:56.137204608 +0100
+++ /var/tmp/diff_new_pack.9zlFHa/_new  2020-01-15 16:45:56.169204626 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package powerstat
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2017, Martin Hauke 
 #
 # All modifications and additions to the file contributed by third parties
@@ -13,12 +13,12 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:   powerstat
-Version:0.02.18
+Version:0.02.21
 Release:0
 Summary:Laptop power measuring tool
 License:GPL-2.0-only

++ powerstat-0.02.18.tar.gz -> powerstat-0.02.21.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.18/Makefile 
new/powerstat-0.02.21/Makefile
--- old/powerstat-0.02.18/Makefile  2018-07-23 00:19:00.0 +0200
+++ new/powerstat-0.02.21/Makefile  2020-01-13 19:59:45.0 +0100
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2011-2018 Canonical, Ltd.
+# Copyright (C) 2011-2020 Canonical, Ltd.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.18
+VERSION=0.02.21
 
 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"'
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.18/powerstat.8 
new/powerstat-0.02.21/powerstat.8
--- old/powerstat-0.02.18/powerstat.8   2018-07-23 00:19:00.0 +0200
+++ new/powerstat-0.02.21/powerstat.8   2020-01-13 19:59:45.0 +0100
@@ -163,7 +163,7 @@
 This manual page was written by Colin King ,
 for the Ubuntu project (but may be used by others).
 .SH COPYRIGHT
-Copyright \(co 2011-2018 Canonical Ltd.
+Copyright \(co 2011-2020 Canonical Ltd.
 .br
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.18/powerstat.c 
new/powerstat-0.02.21/powerstat.c
--- old/powerstat-0.02.18/powerstat.c   2018-07-23 00:19:00.0 +0200
+++ new/powerstat-0.02.21/powerstat.c   2020-01-13 19:59:45.0 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011-2018 Canonical
+ * Copyright (C) 2011-2020 Canonical
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -134,7 +134,6 @@
 typedef struct cpu_info {
struct cpu_info *hash_next; /* Next in hash table */
struct cpu_info *list_next; /* Next in list of cpu_infos list */
-   uint32_tcpu_id; /* CPU ID */
char*state; /* C-State sysfs name, e.g 'state2' */
cpu_state_t *cpu_state; /* C-State info */
double  prev_tod;   /* Previous Time-of-Day */
@@ -146,6 +145,7 @@
uint64_tprev_usage; /* Previous usage count */
uint64_tusage;

commit powerstat for openSUSE:Factory

2018-07-25 Thread root
Hello community,

here is the log from the commit of package powerstat for openSUSE:Factory 
checked in at 2018-07-25 16:13:07

Comparing /work/SRC/openSUSE:Factory/powerstat (Old)
 and  /work/SRC/openSUSE:Factory/.powerstat.new (New)


Package is "powerstat"

Wed Jul 25 16:13:07 2018 rev:6 rq:625117 version:0.02.18

Changes:

--- /work/SRC/openSUSE:Factory/powerstat/powerstat.changes  2018-06-07 
19:56:44.447576233 +0200
+++ /work/SRC/openSUSE:Factory/.powerstat.new/powerstat.changes 2018-07-25 
16:13:12.205933717 +0200
@@ -1,0 +2,9 @@
+Mon Jul 23 06:24:59 UTC 2018 - mar...@gmx.de
+
+- update to version 0.02.18
+  * Makefile: bump version
+  * Rename snapcraft directory to snap, add .travis.yml file to dist rule
+  * Compute Geometric Mean without overflow with large sets of data
+  * Add travis yaml file
+
+---

Old:

  powerstat-0.02.17.tar.gz

New:

  powerstat-0.02.18.tar.gz



Other differences:
--
++ powerstat.spec ++
--- /var/tmp/diff_new_pack.YY4LpM/_old  2018-07-25 16:13:12.793934872 +0200
+++ /var/tmp/diff_new_pack.YY4LpM/_new  2018-07-25 16:13:12.797934880 +0200
@@ -18,7 +18,7 @@
 
 
 Name:   powerstat
-Version:0.02.17
+Version:0.02.18
 Release:0
 Summary:Laptop power measuring tool
 License:GPL-2.0-only

++ powerstat-0.02.17.tar.gz -> powerstat-0.02.18.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.17/.travis.yml 
new/powerstat-0.02.18/.travis.yml
--- old/powerstat-0.02.17/.travis.yml   1970-01-01 01:00:00.0 +0100
+++ new/powerstat-0.02.18/.travis.yml   2018-07-23 00:19:00.0 +0200
@@ -0,0 +1,15 @@
+dist: bionic
+sudo: required
+
+matrix:
+include:
+- env: PEDANTIC=1
+
+before_install:
+- sudo apt-get update -q
+- sudo apt-get install build-essential
+
+language: c
+
+script:
+- make -j2 PEDANTIC=$PEDANTIC
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.17/Makefile 
new/powerstat-0.02.18/Makefile
--- old/powerstat-0.02.17/Makefile  2018-05-29 14:05:46.0 +0200
+++ new/powerstat-0.02.18/Makefile  2018-07-23 00:19:00.0 +0200
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.17
+VERSION=0.02.18
 
 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"'
 
@@ -42,8 +42,8 @@
 dist:
rm -rf powerstat-$(VERSION)
mkdir powerstat-$(VERSION)
-   cp -rp Makefile mascot powerstat.c powerstat.8 COPYING snapcraft \
-   powerstat-$(VERSION)
+   cp -rp Makefile mascot powerstat.c powerstat.8 COPYING snap \
+   .travis.yml powerstat-$(VERSION)
tar -zcf powerstat-$(VERSION).tar.gz powerstat-$(VERSION)
rm -rf powerstat-$(VERSION)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.17/powerstat.c 
new/powerstat-0.02.18/powerstat.c
--- old/powerstat-0.02.17/powerstat.c   2018-05-29 14:05:46.0 +0200
+++ new/powerstat-0.02.18/powerstat.c   2018-07-23 00:19:00.0 +0200
@@ -1108,23 +1108,34 @@
 
for (j = 0; j < MAX_VALUES; j++) {
double total = 0.0;
+   double mant = 1.0;
+   int64_t expon = 0;
 
max->value[j] = -DBL_MAX;
min->value[j] = DBL_MAX;
-   geometric_mean->value[j] = 1.0;
 
for (valid = 0, i = 0; i < num; i++) {
if (!stats[i].inaccurate[j]) {
+   int e;
+   double f;
+
if (stats[i].value[j] > max->value[j])
max->value[j] = stats[i].value[j];
if (stats[i].value[j] < min->value[j])
min->value[j] = stats[i].value[j];
total += stats[i].value[j];
-   geometric_mean->value[j] *= stats[i].value[j];
+   
+   f = frexp(stats[i].value[j], &e);
+   mant *= f;
+   expon += e;
valid++;
}
}
if (valid) {
+   double inverse_n = 1.0 / (double)valid;
+
+   geometric_mean->value[j] = pow(mant, inverse_n) * 
+   pow(2.0, (double)expon / (double)valid);
average->value[j] = total / (double)valid;
   

commit powerstat for openSUSE:Factory

2018-06-07 Thread root
Hello community,

here is the log from the commit of package powerstat for openSUSE:Factory 
checked in at 2018-06-07 19:56:40

Comparing /work/SRC/openSUSE:Factory/powerstat (Old)
 and  /work/SRC/openSUSE:Factory/.powerstat.new (New)


Package is "powerstat"

Thu Jun  7 19:56:40 2018 rev:5 rq:614061 version:0.02.17

Changes:

--- /work/SRC/openSUSE:Factory/powerstat/powerstat.changes  2018-02-06 
16:51:27.493596345 +0100
+++ /work/SRC/openSUSE:Factory/.powerstat.new/powerstat.changes 2018-06-07 
19:56:44.447576233 +0200
@@ -1,0 +2,23 @@
+Fri Jun  1 19:51:51 UTC 2018 - mar...@gmx.de
+
+- Update to version 0.02.17
+  * Makefile: bump version
+  * voidify returns from log_printf call
+  * Make indices arrays const
+  * Make cpu_freq_scale const
+  * Add hint on how to run if not in "discharge" mode
+  * Add adjustable C-state column width for C-state name column
+  * snapcraft: make confinement strict
+  * snapcraft: add plugs
+
+---
+Sat May 19 08:40:36 UTC 2018 - mar...@gmx.de
+
+- update to version 0.02.16
+  * Makefile: bump version
+  * debian/copyright: use secure https url
+  * debian/control: remove empty last line
+  * update debian/compat to 11
+  * Fix range of CPU frequencies histogram. Scale by 1000 and not 1e9
+
+---

Old:

  powerstat-0.02.15.tar.gz

New:

  powerstat-0.02.17.tar.gz



Other differences:
--
++ powerstat.spec ++
--- /var/tmp/diff_new_pack.6aqFe6/_old  2018-06-07 19:56:45.691530658 +0200
+++ /var/tmp/diff_new_pack.6aqFe6/_new  2018-06-07 19:56:45.695530512 +0200
@@ -18,14 +18,13 @@
 
 
 Name:   powerstat
-Version:0.02.15
+Version:0.02.17
 Release:0
 Summary:Laptop power measuring tool
-License:GPL-2.0
+License:GPL-2.0-only
 Group:  System/Monitoring
-Url:http://kernel.ubuntu.com/~cking/powerstat/
+URL:http://kernel.ubuntu.com/~cking/powerstat/
 Source: 
http://kernel.ubuntu.com/~cking/tarballs/%{name}/%{name}-%{version}.tar.gz
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
 Powerstat measures the power consumption of a mobile PC that has a battery
@@ -44,9 +43,8 @@
 %make_install
 
 %files
-%defattr(-,root,root)
-%doc COPYING
+%license COPYING
 %{_bindir}/powerstat
-%{_mandir}/man8/powerstat.8%{ext_man}
+%{_mandir}/man8/powerstat.8%{?ext_man}
 
 %changelog

++ powerstat-0.02.15.tar.gz -> powerstat-0.02.17.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.15/Makefile 
new/powerstat-0.02.17/Makefile
--- old/powerstat-0.02.15/Makefile  2018-01-31 12:33:29.0 +0100
+++ new/powerstat-0.02.17/Makefile  2018-05-29 14:05:46.0 +0200
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.15
+VERSION=0.02.17
 
 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"'
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.15/powerstat.c 
new/powerstat-0.02.17/powerstat.c
--- old/powerstat-0.02.15/powerstat.c   2018-01-31 12:33:29.0 +0100
+++ new/powerstat-0.02.17/powerstat.c   2018-05-29 14:05:46.0 +0200
@@ -155,7 +155,8 @@
char*suffix;
 } cpu_freq_scale_t;
 
-static cpu_freq_scale_t cpu_freq_scale[] = {
+/* Different freq scaling rates */
+static const cpu_freq_scale_t cpu_freq_scale[] = {
{ 1e1,  1e0,  "Hz" },
{ 1e4,  1e3,  "KHz" },
{ 1e7,  1e6,  "MHz" },
@@ -796,7 +797,7 @@
char buf[4096];
int i, j;
 
-   static stat_type indices[] = {
+   static const stat_type indices[] = {
CPU_USER, CPU_NICE, CPU_SYS, CPU_IDLE,
CPU_IOWAIT, CPU_IRQ, CPU_SOFTIRQ, CPU_CTXT,
CPU_INTR, CPU_PROCS_RUN, CPU_PROCS_BLK, -1
@@ -894,7 +895,7 @@
int i, j;
bool inaccurate = false;
 
-   static int indices[] = {
+   static const int indices[] = {
CPU_USER, CPU_NICE, CPU_SYS, CPU_IDLE,
CPU_IOWAIT, -1
};
@@ -1462,6 +1463,11 @@
return 0;
}
(void)printf("Device is not discharging, cannot measure power 
usage.\n");
+   (void)printf("Perhaps re-run with -z (ignore zero power)"
+#if defined(POWERSTAT_X86)
+" or -R (RAPL)"
+#endif
+"\n");
return -1;
}
 
@@ -2309,6 +2315,7 @@
cpu_state_t *s;
double c0_percent = 100.0;
bool c0 = false;
+   int name_wi

commit powerstat for openSUSE:Factory

2018-02-06 Thread root
Hello community,

here is the log from the commit of package powerstat for openSUSE:Factory 
checked in at 2018-02-06 16:51:15

Comparing /work/SRC/openSUSE:Factory/powerstat (Old)
 and  /work/SRC/openSUSE:Factory/.powerstat.new (New)


Package is "powerstat"

Tue Feb  6 16:51:15 2018 rev:4 rq:573309 version:0.02.15

Changes:

--- /work/SRC/openSUSE:Factory/powerstat/powerstat.changes  2017-10-30 
21:19:02.573979725 +0100
+++ /work/SRC/openSUSE:Factory/.powerstat.new/powerstat.changes 2018-02-06 
16:51:27.493596345 +0100
@@ -1,0 +2,16 @@
+Wed Jan 31 19:26:59 UTC 2018 - mar...@gmx.de
+
+- update to version 0.02.15
+  * Makefile: bump version
+  * Fix spelling mistake in comment
+  * Update copyright year
+  * Add GNU format attribute to log_printf
+
+---
+Wed Nov  1 09:31:35 UTC 2017 - mar...@gmx.de
+
+- update to version 0.02.14
+  * Makefile: bump version
+  * Add geometic mean to statistics
+
+---

Old:

  powerstat-0.02.13.tar.gz

New:

  powerstat-0.02.15.tar.gz



Other differences:
--
++ powerstat.spec ++
--- /var/tmp/diff_new_pack.FALYro/_old  2018-02-06 16:51:28.361555699 +0100
+++ /var/tmp/diff_new_pack.FALYro/_new  2018-02-06 16:51:28.36513 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package powerstat
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2017, Martin Hauke 
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,7 +18,7 @@
 
 
 Name:   powerstat
-Version:0.02.13
+Version:0.02.15
 Release:0
 Summary:Laptop power measuring tool
 License:GPL-2.0

++ powerstat-0.02.13.tar.gz -> powerstat-0.02.15.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.13/Makefile 
new/powerstat-0.02.15/Makefile
--- old/powerstat-0.02.13/Makefile  2017-10-19 10:07:38.0 +0200
+++ new/powerstat-0.02.15/Makefile  2018-01-31 12:33:29.0 +0100
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2011-2017 Canonical, Ltd.
+# Copyright (C) 2011-2018 Canonical, Ltd.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.13
+VERSION=0.02.15
 
 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"'
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.13/powerstat.8 
new/powerstat-0.02.15/powerstat.8
--- old/powerstat-0.02.13/powerstat.8   2017-10-19 10:07:38.0 +0200
+++ new/powerstat-0.02.15/powerstat.8   2018-01-31 12:33:29.0 +0100
@@ -2,7 +2,7 @@
 .\" First parameter, NAME, should be all caps
 .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
 .\" other parameters are allowed: see man(7), man(1)
-.TH POWERSTAT 8 "16 August, 2015"
+.TH POWERSTAT 8 "25 October 2017"
 .\" Please adjust this date whenever revising the manpage.
 .\"
 .\" Some roff macros, for reference:
@@ -30,7 +30,8 @@
 that has a battery power source or supports the RAPL (Running Average Power
 Limit) interface.  The output is like vmstat but also shows power
 consumption statistics.  At the end of a run, powerstat will calculate
-the average, standard deviation and min/max of the gathered data.
+the average, standard deviation, minimum, maximum and geometic mean of
+the gathered data.
 .br
 
 Note that running powerstat as root will provide extra information about
@@ -162,7 +163,7 @@
 This manual page was written by Colin King ,
 for the Ubuntu project (but may be used by others).
 .SH COPYRIGHT
-Copyright \(co 2011-2016 Canonical Ltd.
+Copyright \(co 2011-2018 Canonical Ltd.
 .br
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.13/powerstat.c 
new/powerstat-0.02.15/powerstat.c
--- old/powerstat-0.02.13/powerstat.c   2017-10-19 10:07:38.0 +0200
+++ new/powerstat-0.02.15/powerstat.c   2018-01-31 12:33:29.0 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011-2017 Canonical
+ * Copyright (C) 2011-2018 Canonical
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -333,7 +333,7 @@
 
 /*
  *   set_prioity
- * set high priority to try and get netl

commit powerstat for openSUSE:Factory

2017-10-30 Thread root
Hello community,

here is the log from the commit of package powerstat for openSUSE:Factory 
checked in at 2017-10-30 21:18:45

Comparing /work/SRC/openSUSE:Factory/powerstat (Old)
 and  /work/SRC/openSUSE:Factory/.powerstat.new (New)


Package is "powerstat"

Mon Oct 30 21:18:45 2017 rev:3 rq:537434 version:0.02.13

Changes:

--- /work/SRC/openSUSE:Factory/powerstat/powerstat.changes  2017-06-26 
15:53:21.606381349 +0200
+++ /work/SRC/openSUSE:Factory/.powerstat.new/powerstat.changes 2017-10-30 
21:19:02.573979725 +0100
@@ -1,0 +2,14 @@
+Fri Oct 20 13:25:40 UTC 2017 - mar...@gmx.de
+
+- update to version 0.02.13
+  * Makefile: bump version
+  * Increase temp buf from 16 to 32 bytes, cleans up gcc warning
+  * Add more scanf sanity checking
+  * debian/control: update Standards-version to 4.1.1
+  * voidify function returns
+  * use sizeof an object rather than the objects type
+  * Don't use sentinel for end of signals[], use array size instead
+  * include  for writev
+  * powerstat: break wide macro over 2 lines
+
+---

Old:

  powerstat-0.02.12.tar.gz

New:

  powerstat-0.02.13.tar.gz



Other differences:
--
++ powerstat.spec ++
--- /var/tmp/diff_new_pack.9ur6MG/_old  2017-10-30 21:19:03.229955874 +0100
+++ /var/tmp/diff_new_pack.9ur6MG/_new  2017-10-30 21:19:03.229955874 +0100
@@ -18,7 +18,7 @@
 
 
 Name:   powerstat
-Version:0.02.12
+Version:0.02.13
 Release:0
 Summary:Laptop power measuring tool
 License:GPL-2.0

++ powerstat-0.02.12.tar.gz -> powerstat-0.02.13.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.12/Makefile 
new/powerstat-0.02.13/Makefile
--- old/powerstat-0.02.12/Makefile  2017-06-20 15:06:38.0 +0200
+++ new/powerstat-0.02.13/Makefile  2017-10-19 10:07:38.0 +0200
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.12
+VERSION=0.02.13
 
 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"'
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.12/powerstat.c 
new/powerstat-0.02.13/powerstat.c
--- old/powerstat-0.02.12/powerstat.c   2017-06-20 15:06:38.0 +0200
+++ new/powerstat-0.02.13/powerstat.c   2017-10-19 10:07:38.0 +0200
@@ -43,6 +43,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 #include 
@@ -79,6 +80,8 @@
 
 #define I915_ENERGY_UJ "/sys/kernel/debug/dri/0/i915_energy_uJ"
 
+#define SIZEOF_ARRAY(a)(sizeof(a) / sizeof(a[0]))
+
 #define MAX(x, y)  (x) > (y) ? (x) : (y)
 #define MIN(x, y)  (x) > (y) ? (y) : (x)
 
@@ -202,7 +205,8 @@
 #define SYS_FIELD_AMPS_LEFT"POWER_SUPPLY_CHARGE_NOW="
 #define SYS_FIELD_STATUS_DISCHARGING   "POWER_SUPPLY_STATUS=Discharging"
 
-#if defined(__x86_64__) || defined(__x86_64) || defined(__i386__) || 
defined(__i386)
+#if defined(__x86_64__) || defined(__x86_64) || \
+defined(__i386__) || defined(__i386)
 #define POWERSTAT_X86
 #endif
 
@@ -325,7 +329,6 @@
 #ifdef SIGVTALRM
SIGVTALRM,
 #endif
-   -1,
 };
 
 /*
@@ -351,7 +354,7 @@
if ((max = sched_get_priority_max(sched)) < 0)
return;
 
-   memset(¶m, 0, sizeof(param));
+   (void)memset(¶m, 0, sizeof(param));
param.sched_priority = max;
(void)sched_setscheduler(getpid(), sched, ¶m);
 }
@@ -418,7 +421,7 @@
}
}
 
-   snprintf(buffer, sizeof(buffer), "%5.2f %-3s",
+   (void)snprintf(buffer, sizeof(buffer), "%5.2f %-3s",
freq / scale, suffix);
 
return buffer;
@@ -438,7 +441,7 @@
unsigned int got = 0;
 
*is_thread = false;
-   snprintf(path, sizeof(path), "/proc/%u/status", pid);
+   (void)snprintf(path, sizeof(path), "/proc/%u/status", pid);
if ((fp = fopen(path, "r")) == NULL)
return 0;
 
@@ -459,7 +462,7 @@
}
}
}
-   fclose(fp);
+   (void)fclose(fp);
 
if ((got & GOT_ALL) == GOT_ALL) {
/*  TGID and PID are not the same if it is a thread */
@@ -524,7 +527,7 @@
struct timeval tv;
 
 if (gettimeofday(&tv, NULL) < 0) {
-fprintf(stderr, "gettimeofday failed: errno=%d (%s).\n",
+(void)fprintf(stderr, "gettimeofday failed: errno=%d (%s).\n",
 errno, strerror(errno));
return -1.0;
 }
@@ -579,14 +582,14 @@
(void)vsnprintf(buffer, sizeof(buffer), fmt, ap);
va_end(ap);
 
-   if ((l

commit powerstat for openSUSE:Factory

2017-06-26 Thread root
Hello community,

here is the log from the commit of package powerstat for openSUSE:Factory 
checked in at 2017-06-26 15:53:16

Comparing /work/SRC/openSUSE:Factory/powerstat (Old)
 and  /work/SRC/openSUSE:Factory/.powerstat.new (New)


Package is "powerstat"

Mon Jun 26 15:53:16 2017 rev:2 rq:505861 version:0.02.12

Changes:

--- /work/SRC/openSUSE:Factory/powerstat/powerstat.changes  2017-05-17 
23:54:35.822326937 +0200
+++ /work/SRC/openSUSE:Factory/.powerstat.new/powerstat.changes 2017-06-26 
15:53:21.606381349 +0200
@@ -1,0 +2,14 @@
+Wed Jun 21 06:43:41 UTC 2017 - mar...@gmx.de
+
+- update to version 0.02.12
+  * Makefile: bump version
+  * Makefile: add snapcraft files to dist rule
+  * Fix incorrect GPU stats when sample rate is not 1 second (LP: #1699134)
+  * snapcraft: add default type and grade keys
+  * snapcraft: Makefile: remove icon hack
+  * reduce the scope of the variable 'buf'
+  * snapcraft.yaml: remove bogos unnecessary libs
+  * Add snapcraft files
+  * update copyright year
+
+---

Old:

  powerstat-0.02.11.tar.gz

New:

  powerstat-0.02.12.tar.gz



Other differences:
--
++ powerstat.spec ++
--- /var/tmp/diff_new_pack.34tfeD/_old  2017-06-26 15:53:22.242291679 +0200
+++ /var/tmp/diff_new_pack.34tfeD/_new  2017-06-26 15:53:22.242291679 +0200
@@ -1,6 +1,7 @@
 #
 # spec file for package powerstat
 #
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2017, Martin Hauke 
 #
 # All modifications and additions to the file contributed by third parties
@@ -17,7 +18,7 @@
 
 
 Name:   powerstat
-Version:0.02.11
+Version:0.02.12
 Release:0
 Summary:Laptop power measuring tool
 License:GPL-2.0

++ powerstat-0.02.11.tar.gz -> powerstat-0.02.12.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.11/Makefile 
new/powerstat-0.02.12/Makefile
--- old/powerstat-0.02.11/Makefile  2016-12-01 13:28:27.0 +0100
+++ new/powerstat-0.02.12/Makefile  2017-06-20 15:06:38.0 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2011-2016 Canonical, Ltd.
+# Copyright (C) 2011-2017 Canonical, Ltd.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -16,7 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
 #
 
-VERSION=0.02.11
+VERSION=0.02.12
 
 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"'
 
@@ -42,7 +42,7 @@
 dist:
rm -rf powerstat-$(VERSION)
mkdir powerstat-$(VERSION)
-   cp -rp Makefile mascot powerstat.c powerstat.8 COPYING \
+   cp -rp Makefile mascot powerstat.c powerstat.8 COPYING snapcraft \
powerstat-$(VERSION)
tar -zcf powerstat-$(VERSION).tar.gz powerstat-$(VERSION)
rm -rf powerstat-$(VERSION)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.11/powerstat.c 
new/powerstat-0.02.12/powerstat.c
--- old/powerstat-0.02.11/powerstat.c   2016-12-01 13:28:27.0 +0100
+++ new/powerstat-0.02.12/powerstat.c   2017-06-20 15:06:38.0 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011-2016 Canonical
+ * Copyright (C) 2011-2017 Canonical
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -1626,7 +1626,6 @@
 static const char *rapl_get_domain(const int n)
 {
int i;
-   static char buf[128];
 
rapl_info_t *rapl = rapl_list;
 
@@ -1635,6 +1634,8 @@
}
if (rapl) {
if (rapl->is_package) {
+   static char buf[128];
+
snprintf(buf, sizeof(buf), "pkg-%s", rapl->domain_name 
+ 8);
return buf;
}
@@ -1852,9 +1853,10 @@
res->inaccurate[POWER_GPU] = true;
ret = -1;
} else {
-   s2->value[POWER_GPU] = (double)val / 100.0;
-   res->value[POWER_GPU] = stats_sane(s1, s2, POWER_GPU);
+   s2->value[POWER_GPU] = ((double)val / 100.0) / sample_delay;
+   s2->inaccurate[POWER_GPU] = false;
res->inaccurate[POWER_GPU] = false;
+   res->value[POWER_GPU] = stats_sane(s1, s2, POWER_GPU);
ret = 0;
}
return ret;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/powerstat-0.02.11/snapcraft/Makefile 
new/powerstat-0.02.12/snapcraft/Makefile
--- old/powerstat-0.02.11/snapcraft/Makefile1970-01-01 01:00:00.00