mirror of https://github.com/xzeldon/htop.git
Merge branch 'hishamhm-pull-960'
This commit is contained in:
commit
a82fd262d7
|
@ -14,3 +14,4 @@ charset = utf-8
|
|||
[*.{c,h}]
|
||||
indent_style = space
|
||||
indent_size = 3
|
||||
trim_trailing_whitespace = true
|
||||
|
|
|
@ -205,7 +205,6 @@ static void Battery_getSysData(double* level, ACPresence* isOnAC) {
|
|||
continue;
|
||||
|
||||
if (type[0] == 'B' && type[1] == 'a' && type[2] == 't') {
|
||||
|
||||
xSnprintf((char *) filePath, sizeof filePath, SYS_POWERSUPPLY_DIR "/%s/uevent", entryName);
|
||||
int fd = open(filePath, O_RDONLY);
|
||||
if (fd == -1) {
|
||||
|
|
Loading…
Reference in New Issue