summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorHaejeong Kim <backto.kim@samsung.com>2017-03-30 09:59:15 +0900
committerHaejeong Kim <backto.kim@samsung.com>2017-03-30 09:59:15 +0900
commitaee150adb2f1ea46f8ab3e1ee32896338bc811eb (patch)
tree5aff090d4422911a3c3647ca9044a0a41388ff36 /src/util
parentb309bbcdcb5dafd7c22dcd669b918117b25076b6 (diff)
downloadlibmedia-thumbnail-aee150adb2f1ea46f8ab3e1ee32896338bc811eb.tar.gz
libmedia-thumbnail-aee150adb2f1ea46f8ab3e1ee32896338bc811eb.tar.bz2
libmedia-thumbnail-aee150adb2f1ea46f8ab3e1ee32896338bc811eb.zip
Change-Id: I6951f5a5bf334838c9d17dba0edb03be10a30c96
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/media-thumb-db.c2
-rwxr-xr-xsrc/util/media-thumb-debug.c10
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