Revert "Update ground state in table while updating data usage." 58/155758/1
authortaesub kim <taesub.kim@samsung.com>
Mon, 16 Oct 2017 05:31:33 +0000 (05:31 +0000)
committertaesub kim <taesub.kim@samsung.com>
Mon, 16 Oct 2017 05:31:33 +0000 (05:31 +0000)
This reverts commit 3b547510161f3098a3af865260dbd8b306546f7d.

Change-Id: Iccc7ec64a4758e8ec12e68d2b20e19339144056b

src/monitor/stc-monitor.c

index 7b0558c..2530dd0 100755 (executable)
@@ -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);