Fix 'frequency' statistics for the trigger to emit proper results
[platform/core/context/statistics-context-provider.git] / src / social / log_aggregator.cpp
index e3de297..f1488d9 100644 (file)
@@ -40,7 +40,7 @@ void ctx::contact_log_aggregator::create_table()
        IF_FAIL_VOID(!done);
 
        db_manager::create_table(0, SOCIAL_TABLE_CONTACT_LOG, SOCIAL_TABLE_CONTACT_LOG_COLUMNS, NULL, NULL);
-       db_manager::execute(0, SOCIAL_VIEW_CONTACT_FREQ_SQL, NULL);
+       db_manager::execute(0, SOCIAL_TEMP_CONTACT_FREQ_SQL, NULL);
 
        done = true;
 }
@@ -144,6 +144,8 @@ void ctx::contact_log_aggregator::insert_contact_log_list(contacts_list_h list)
                data.set(NULL, STATS_DURATION, duration);
                data.set(NULL, STATS_UNIV_TIME, accesstime);
 
+               /* TODO: Local Time */
+
                db_manager::insert(0, SOCIAL_TABLE_CONTACT_LOG, data, NULL);
 
        } while(contacts_list_next(list) == CONTACTS_ERROR_NONE);