diff options
Diffstat (limited to 'src/util')
-rwxr-xr-x | src/util/media-thumb-db.c | 2 | ||||
-rwxr-xr-x | src/util/media-thumb-debug.c | 10 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/util/media-thumb-db.c b/src/util/media-thumb-db.c index 9b1e670..62ff2cb 100755 --- a/src/util/media-thumb-db.c +++ b/src/util/media-thumb-db.c @@ -27,7 +27,7 @@ #include <string.h> #include <unistd.h> -static __thread MediaDBHandle *db_handle; +static __thread MediaDBHandle *db_handle; sqlite3 *_media_thumb_db_get_handle() { diff --git a/src/util/media-thumb-debug.c b/src/util/media-thumb-debug.c index 9515505..f293afd 100755 --- a/src/util/media-thumb-debug.c +++ b/src/util/media-thumb-debug.c @@ -88,25 +88,21 @@ void thumb_print_debug_time(char *time_string) double totaltime = 0.0; gettimeofday(&time, NULL); - totaltime = - (double)(time.tv_sec * 1000000 + time.tv_usec - - g_time_usec) / CLOCKS_PER_SEC; + totaltime = (double)(time.tv_sec * 1000000 + time.tv_usec - g_time_usec) / CLOCKS_PER_SEC; thumb_dbg("time [%s] : %f", time_string, totaltime); #endif } void -thumb_print_debug_time_ex(long start, long end, const char *func_name, - char *time_string) +thumb_print_debug_time_ex(long start, long end, const char *func_name, char *time_string) { #ifdef _PERFORMANCE_CHECK_ double totaltime = 0.0; totaltime = (double)(end - start) / CLOCKS_PER_SEC; - thumb_dbg("time [%s: %s] : %f", func_name, time_string, - totaltime); + thumb_dbg("time [%s: %s] : %f", func_name, time_string, totaltime); #endif } #endif
\ No newline at end of file |