projects
/
platform
/
core
/
connectivity
/
stc-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
951a7b0
)
Update ground state in table while updating data usage.
08/153908/2
author
Nishant Chaprana
<n.chaprana@samsung.com>
Tue, 3 Oct 2017 09:02:45 +0000
(14:32 +0530)
committer
Nishant Chaprana
<n.chaprana@samsung.com>
Wed, 11 Oct 2017 05:48:46 +0000
(
05:48
+0000)
Change-Id: I7bd13c92fac2994f2be22fa3000896ded3a5b70a
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
src/monitor/stc-monitor.c
patch
|
blob
|
history
diff --git
a/src/monitor/stc-monitor.c
b/src/monitor/stc-monitor.c
index
2530dd0
..
7b0558c
100755
(executable)
--- a/
src/monitor/stc-monitor.c
+++ b/
src/monitor/stc-monitor.c
@@
-890,7
+890,15
@@
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;
- stat.ground = STC_APP_STATE_UNKNOWN;
+
+ 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;
+ }
table_statistics_insert(&stat_key, &stat, *touch_time);