From: taesub kim Date: Mon, 16 Oct 2017 05:31:33 +0000 (+0000) Subject: Revert "Update ground state in table while updating data usage." X-Git-Tag: accepted/tizen/unified/20171018.062540~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ea28ba451797681c1e71840148ea8ed92361a4e;p=platform%2Fcore%2Fconnectivity%2Fstc-manager.git Revert "Update ground state in table while updating data usage." This reverts commit 3b547510161f3098a3af865260dbd8b306546f7d. Change-Id: Iccc7ec64a4758e8ec12e68d2b20e19339144056b --- diff --git a/src/monitor/stc-monitor.c b/src/monitor/stc-monitor.c index 7b0558c..2530dd0 100755 --- a/src/monitor/stc-monitor.c +++ b/src/monitor/stc-monitor.c @@ -890,15 +890,7 @@ static gboolean __update_app_statistics(gpointer key, gpointer value, stat.snd_count = app_value->counter.out_bytes; stat.rcv_count = app_value->counter.in_bytes; stat.is_roaming = default_connection->roaming; - - if (strstr(stat.app_id, "_BACKGROUND")) { - stat.ground = STC_APP_STATE_BACKGROUND; - } else { - if (strstr(stat.app_id, "TOTAL_")) - stat.ground = STC_APP_STATE_UNKNOWN; - else - stat.ground = STC_APP_STATE_FOREGROUND; - } + stat.ground = STC_APP_STATE_UNKNOWN; table_statistics_insert(&stat_key, &stat, *touch_time);