Extract send_limit, rcv_limit, rcv_warn_limit and send_warn_limit as int64 81/130381/3
authorNishant Chaprana <n.chaprana@samsung.com>
Mon, 22 May 2017 11:28:35 +0000 (16:58 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Mon, 22 May 2017 11:28:35 +0000 (16:58 +0530)
commita6cf4f02af073daef2a0cce1ef556ce3a5090afc
tree16889e5cca70b16a03575e224cc93f2e6fd4e8bc
parent083fabac957ef926919536bd29af329a0d3b6c26
Extract send_limit, rcv_limit, rcv_warn_limit and send_warn_limit as int64

Description: smart-traffic-control library sends limits as int64 but manager
was extracting these values as uint64, due to which values were not extracted
and limits were not updated.

Below is the error log:-

D/STC_MANAGER(  386): stc-manager-gdbus.c: stc_manager_gdbus_dict_foreach(298) > Key : [rcv_limit]
D/STC_MANAGER(  386): stc-manager-gdbus.c: stc_manager_gdbus_dict_foreach(298) > Value: [int64 1024000]
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(180) > Enter
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(207) > rcv_limit: [0]
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(235) > Quit
D/STC_MANAGER(  386): stc-manager-gdbus.c: stc_manager_gdbus_dict_foreach(298) > Key : [send_limit]
D/STC_MANAGER(  386): stc-manager-gdbus.c: stc_manager_gdbus_dict_foreach(298) > Value: [int64 1024000]
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(180) > Enter
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(211) > send_limit: [0]
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(235) > Quit
D/STC_MANAGER(  386): stc-manager-gdbus.c: stc_manager_gdbus_dict_foreach(298) > Key : [rcv_warn_limit]
D/STC_MANAGER(  386): stc-manager-gdbus.c: stc_manager_gdbus_dict_foreach(298) > Value: [int64 1020000]
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(180) > Enter
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(215) > rcv_warn_limit: [0]
D/STC_MANAGER(  386): stc-restriction.c: __stc_extract_restriction_rule(235) > Quit
D/STC_MANAGER(  386): stc-manager-gdbus.c: stc_manager_gdbus_dict_foreach(298) > Key : [send_warn_limit]
D/STC_MANAGER(  386): stc-manager-gdbus.c: stc_manager_gdbus_dict_foreach(298) > Value: [int64 1020000]

Change-Id: I2e5ea475bc5545f631b7c74d208b2b1a27d41308
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/stc-manager.spec
src/stc-restriction.c