Sync stat fix patch with upstream, add commit info

epel9
Mystro256 8 years ago
parent 8210c43d83
commit 292d5f4d21

@ -1,4 +1,14 @@
commit 9498a85d1cedb78a38b54f243c9c4a3daad5bcc6
Author: Thomas Koch <linrunner@gmx.net>
Date: Tue Feb 28 20:33:44 2017 +0100
tlp-stat: intercept non-existing or invalid charge values
Reference:
* Issue #256: https://github.com/linrunner/TLP/issues/256
diff --git a/tlp-stat.in b/tlp-stat.in
index ca08527..8aeb6a6 100644
--- a/tlp-stat.in
+++ b/tlp-stat.in
@@ -58,6 +58,15 @@ no_runtimepm=0
@ -17,6 +27,15 @@ diff --git a/tlp-stat.in b/tlp-stat.in
printparm () { # formatted output of sysfile - general
# $1: format, $2: sysfile, $3: namsg, $4: cutoff
local format="$1"
@@ -257,7 +266,7 @@ check_ata_errors () { # check kernel log for ata errors
# count matching error lines
echo $( dmesg | egrep -c "${RE_ATA_ERROR}" 2> /dev/null )
else
- # no values in question configured
+ # no values in question configured
echo "0"
fi
@@ -1115,9 +1124,9 @@ if [ "$show_bat" = "1" ] || [ "$show_all" = "1" ]; then
echo

Loading…
Cancel
Save