Removed debug output
This commit is contained in:
parent
bb85d3dca6
commit
dd9e5dabb1
5
thumbs.c
5
thumbs.c
@ -82,10 +82,8 @@ Imlib_Image* tns_cache_load(const char *filename) {
|
|||||||
cstats.st_mtim.tv_sec == fstats.st_mtim.tv_sec &&
|
cstats.st_mtim.tv_sec == fstats.st_mtim.tv_sec &&
|
||||||
cstats.st_mtim.tv_nsec == fstats.st_mtim.tv_nsec)
|
cstats.st_mtim.tv_nsec == fstats.st_mtim.tv_nsec)
|
||||||
{
|
{
|
||||||
printf("cache hit: %s\n", filename);
|
|
||||||
im = imlib_load_image(cfile);
|
im = imlib_load_image(cfile);
|
||||||
} else
|
}
|
||||||
printf("cache MISS: %s\n", filename);
|
|
||||||
free(cfile);
|
free(cfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,7 +125,6 @@ void tns_cache_write(thumb_t *t, Bool force) {
|
|||||||
TIMESPEC_TO_TIMEVAL(×[0], &fstats.st_atim);
|
TIMESPEC_TO_TIMEVAL(×[0], &fstats.st_atim);
|
||||||
TIMESPEC_TO_TIMEVAL(×[1], &fstats.st_mtim);
|
TIMESPEC_TO_TIMEVAL(×[1], &fstats.st_mtim);
|
||||||
utimes(cfile, times);
|
utimes(cfile, times);
|
||||||
printf("thumbnail cache file written: %s\n", t->filename);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(cfile);
|
free(cfile);
|
||||||
|
Loading…
Reference in New Issue
Block a user