Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82514
b: refs/heads/master
c: e91926e
h: refs/heads/master
v: v3
  • Loading branch information
Anton Vorontsov committed Feb 1, 2008
1 parent efe13c7 commit 2d9e29c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ae4bb152901e406074ae2a205e1c42941a46bbaf
refs/heads/master: e91926e9ea9073d8ce95b74602e8c2d775f5a793
3 changes: 3 additions & 0 deletions trunk/drivers/power/apm_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ static int do_calculate_time(int status, enum apm_source source)
return -1;
}

if (!I.intval)
return 0;

switch (source) {
case SOURCE_CHARGE:
full_prop = POWER_SUPPLY_PROP_CHARGE_FULL;
Expand Down

0 comments on commit 2d9e29c

Please sign in to comment.