state_file: save only if something has changed

If nothing has changed since the last save, don't save the state
file.  Saving will spin up the hard drive, which is undesirable on
hosts where MPD is idling in background.
This commit is contained in:
Max Kellermann
2009-10-08 15:22:39 +02:00
parent 1e663b1869
commit ecb118f1ed
9 changed files with 87 additions and 0 deletions

1
NEWS
View File

@@ -36,6 +36,7 @@ ver 0.16 (20??/??/??)
* renamed option "--stdout" to "--stderr"
* removed options --create-db and --no-create-db
* automatically update the database with Linux inotify
* state_file: save only if something has changed
* obey $(sysconfdir) for default mpd.conf location