forked from enlightenment/enlightenment
parent
223013c370
commit
bc45b835df
|
@ -1220,11 +1220,7 @@ linux_apm_check(void)
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
||||||
bat_val = strtol(s1, &endptr, 10);
|
bat_val = strtol(s1, &endptr, 10);
|
||||||
if (*endptr != '%')
|
if (*endptr != '%') return;
|
||||||
{
|
|
||||||
bat_val = -1;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!strcmp(s3, "sec")) time_val = atoi(s2);
|
if (!strcmp(s3, "sec")) time_val = atoi(s2);
|
||||||
else if (!strcmp(s3, "min"))
|
else if (!strcmp(s3, "min"))
|
||||||
|
|
Loading…
Reference in New Issue