The slocate database should not be updated when running on battery power.
Bug #280369 reported by
David Tomaschik
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
slocate (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: slocate
A feature request, really, but with an attached patch. :)
Currently, cron will update the slocate database daily regardless of the power status of the laptop. As this is a very IO-intensive operation, this is likely to degrade system battery life significantly. For this reason, I believe that the update of the database should be disabled when on battery.
I've attached a patch to /etc/cron.
To post a comment you must log in.
This bug is no longer relevant with the move to mlocate. Marked own bug Invalid,