aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-10 03:14:31 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-10 03:14:31 +0000
commite5e45242e03811a42d8bb98cc5ff5024a21a261a (patch)
tree35cfcab007d22a184aa5d45c12d3db9f4c54a261 /src/directory.c
parentc69b615f2b17a927f2c49ab9cd381eb1e5a8e2a4 (diff)
downloadmpd-e5e45242e03811a42d8bb98cc5ff5024a21a261a.tar.gz
mpd-e5e45242e03811a42d8bb98cc5ff5024a21a261a.tar.xz
mpd-e5e45242e03811a42d8bb98cc5ff5024a21a261a.zip
update when mtimes are not the same
git-svn-id: https://svn.musicpd.org/mpd/trunk@238 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/directory.c')
-rw-r--r--src/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directory.c b/src/directory.c
index f8bd00969..a5ef89451 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -151,7 +151,7 @@ int updateInDirectory(Directory * directory, char * shortname, char * name) {
if(0==findInList(directory->songs,shortname,&song)) {
addToDirectory(directory,shortname,name);
}
- else if(mtime>((Song *)song)->mtime) {
+ else if(mtime!=((Song *)song)->mtime) {
LOG("updating %s\n",name);
updateSongInfo((Song *)song);
}