Re: [hackers] [slstatus] [PATCH V-2] Audit slstatus.c

2018-05-18 Thread Laslo Hunhold
On Fri, 18 May 2018 00:09:59 +0200 Laslo Hunhold wrote: > This is an updated version, as I forgot to remove locale.h and wanted to explain the XFlush()-change a bit more. With best regards Laslo Hunhold -- Laslo Hunhold >From

[hackers] [slstatus] Audit slstatus.c || Laslo Hunhold

2018-05-18 Thread git
commit a4fe8c97414f07dd8b891e0d325dd2733195151d Author: Laslo Hunhold AuthorDate: Fri May 18 10:07:50 2018 +0200 Commit: Aaron Marcher CommitDate: Fri May 18 10:08:03 2018 +0200 Audit slstatus.c 1) Remove setlocale() (locales are harmful and

[hackers] [slstat_new][PATCH] battery: fixed remaining time on connected AC

2018-05-18 Thread Tobias Tschinkowitz
when an AC is connected apm_info shows a non-valid value for remaining minutes. it was decided that in that case the function should return an empty string. --- components/battery.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/battery.c

[hackers] [slstatus] Port battery_remaining to Linux || Aaron Marcher

2018-05-18 Thread git
commit f170028527bdccead9a99797b45011d5e76100f1 Author: Aaron Marcher AuthorDate: Fri May 18 17:25:09 2018 +0200 Commit: Aaron Marcher CommitDate: Fri May 18 17:25:09 2018 +0200 Port battery_remaining to Linux Additionally unify the format of

[hackers] [slstatus] battery: fixed remaining time on connected AC || Tobias Tschinkowitz

2018-05-18 Thread git
commit 367f8a8c44fc9dc05a0f7a2c1500111ca97f669c Author: Tobias Tschinkowitz AuthorDate: Fri May 18 16:33:51 2018 +0200 Commit: Aaron Marcher CommitDate: Fri May 18 16:35:32 2018 +0200 battery: fixed remaining time on connected AC when an AC

[hackers] [slstatus] Fix memory leak || Aaron Marcher

2018-05-18 Thread git
commit b04ca3ef45decced916dd43370d43a10f21e2991 Author: Aaron Marcher AuthorDate: Fri May 18 16:55:37 2018 +0200 Commit: Aaron Marcher CommitDate: Fri May 18 16:55:37 2018 +0200 Fix memory leak diff --git a/components/battery.c b/components/battery.c

[hackers] [slstatus][PATCH] added battery_remaining function

2018-05-18 Thread Tobias Tschinkowitz
implementation of a battery_remaining function which returns the remaining battery time in HH:MM format. linux function still needs implementation. --- Hi! I added a function which shows the remaining battery time. As i dont have a linux machine at the moment i would like to leave the

Re: [hackers] [slstatus][PATCH] added battery_remaining function

2018-05-18 Thread Aaron Marcher
Tobias, What do you think? Thank you very much for your patch. Good work! Applied it. I will work now on the Linux function. Also thank you for moving the common code to load_apm_power_info(). It is a lot simpler now. I hope it is OK for you if I modified your commit message to explain

[hackers] [slstatus] Fix memory leak || Aaron Marcher

2018-05-18 Thread git
commit 9be2be7197d9ba51abaeb98675fc81676a72b1df Author: Aaron Marcher AuthorDate: Fri May 18 16:52:10 2018 +0200 Commit: Aaron Marcher CommitDate: Fri May 18 16:52:10 2018 +0200 Fix memory leak diff --git a/components/battery.c b/components/battery.c

[hackers] [slstatus] Add fmt_scaled util function || Aaron Marcher

2018-05-18 Thread git
commit 35219d39caa5ab5e0b1c9e6d4a1cbb29a388842e Author: Aaron Marcher AuthorDate: Fri May 18 23:14:10 2018 +0200 Commit: Aaron Marcher CommitDate: Fri May 18 23:14:10 2018 +0200 Add fmt_scaled util function diff --git a/util.c b/util.c index

[hackers] [slstatus] Implement fmt_scaled for disk_* functions || Aaron Marcher

2018-05-18 Thread git
commit b3e56066ed5349c6fd0afe1ac7cf5035e16a8a2f Author: Aaron Marcher AuthorDate: Fri May 18 23:14:55 2018 +0200 Commit: Aaron Marcher CommitDate: Fri May 18 23:14:55 2018 +0200 Implement fmt_scaled for disk_* functions diff --git a/components/disk.c

[hackers] [slstatus] Implement fmt_scaled for swap_* functions || Aaron Marcher

2018-05-18 Thread git
commit 39ee31c2425d3ff79f88808cabf44c305d6849ab Author: Aaron Marcher AuthorDate: Fri May 18 23:19:18 2018 +0200 Commit: Aaron Marcher CommitDate: Fri May 18 23:19:18 2018 +0200 Implement fmt_scaled for swap_* functions diff --git a/components/swap.c

[hackers] [slstatus] Use %d instead of accidentally %i || Aaron Marcher

2018-05-18 Thread git
commit f3178199848911c8fb51b30e3993ae47120fcc6c Author: Aaron Marcher AuthorDate: Fri May 18 19:58:51 2018 +0200 Commit: Aaron Marcher CommitDate: Fri May 18 19:58:51 2018 +0200 Use %d instead of accidentally %i diff --git a/components/battery.c

[hackers] [slstatus] uptime: Format function is static || Aaron Marcher

2018-05-18 Thread git
commit 0383146e5e616e81c13b23a127ecfa697feac7db Author: Aaron Marcher AuthorDate: Sat May 19 01:55:31 2018 +0200 Commit: Aaron Marcher CommitDate: Sat May 19 01:55:31 2018 +0200 uptime: Format function is static diff --git a/components/uptime.c

[hackers] [slstatus] battery: Move out struct as common code || Aaron Marcher

2018-05-18 Thread git
commit aac29e2bba1d34762971718c40004f37415d411e Author: Aaron Marcher AuthorDate: Sat May 19 01:49:46 2018 +0200 Commit: Aaron Marcher CommitDate: Sat May 19 01:49:46 2018 +0200 battery: Move out struct as common code diff --git

[hackers] [slstatus] implemented openbsd netspeed functions || Tobias Tschinkowitz

2018-05-18 Thread git
commit 22175f0d5792f1d046b6b501c694a3afabc877ed Author: Tobias Tschinkowitz AuthorDate: Sat May 19 01:29:20 2018 +0200 Commit: Aaron Marcher CommitDate: Sat May 19 01:44:36 2018 +0200 implemented openbsd netspeed functions implemented the

[hackers] [slstatus] Fix ram_free for Linux || Aaron Marcher

2018-05-18 Thread git
commit 49d1e5fae2e4957abcf0f1056b3e8df8d695094c Author: Aaron Marcher AuthorDate: Fri May 18 23:32:00 2018 +0200 Commit: Aaron Marcher CommitDate: Fri May 18 23:32:00 2018 +0200 Fix ram_free for Linux diff --git a/components/ram.c b/components/ram.c

[hackers] [slstatus] Implement fmt_scaled for ram_* functions || Aaron Marcher

2018-05-18 Thread git
commit d0c68989cd9f42f2b79da3a2ebe9d4765b28bfc1 Author: Aaron Marcher AuthorDate: Fri May 18 23:38:59 2018 +0200 Commit: Aaron Marcher CommitDate: Fri May 18 23:38:59 2018 +0200 Implement fmt_scaled for ram_* functions diff --git a/components/ram.c

[hackers] [slstatus] Add network speed functions || Aaron Marcher

2018-05-18 Thread git
commit 0d05b3d13d42f8bebc74bb5f6da7e5e10c0e9933 Author: Aaron Marcher AuthorDate: Sat May 19 00:31:33 2018 +0200 Commit: Aaron Marcher CommitDate: Sat May 19 00:31:33 2018 +0200 Add network speed functions diff --git a/Makefile b/Makefile index

[hackers] [slstatus] Add netspeeds to config.def.h || Aaron Marcher

2018-05-18 Thread git
commit 176d8ff87418a22240a0b079d7dac593d103e984 Author: Aaron Marcher AuthorDate: Sat May 19 00:40:59 2018 +0200 Commit: Aaron Marcher CommitDate: Sat May 19 00:40:59 2018 +0200 Add netspeeds to config.def.h diff --git a/config.def.h b/config.def.h

[hackers] [slstatus][PATCH] implemented openbsd netspeed functions

2018-05-18 Thread Tobias Tschinkowitz
implemented the netspeed functionality for openbsd. furthermore the static keyword was removed of the interval variable in config.def.h for usage as extern variable. --- components/netspeeds.c | 60 +- config.def.h | 2 +- 2 files