Skip to content

Commit c64d656

Browse files
RDKB-62029 Enhance the support for generating client telemetry stats to 1 minute (#642)
RDKB-62029 Enhance the support for generating client telemetry stats to 1 minute Reason for change: To change the Min_LogInterval value to 60 seconds Test Procedure: 1. Change the Min_LogInterval value to 60 seconds using below mentioned DMCLI dmcli eRT setv Device.DeviceInfo.X_RDKCENTRAL-COM_WIFI_TELEMETRY.LogInterval. 2. Connect clients 3. Check for the telemetry stats for every one minute Priority: P0 Risks: Low Signed-off-by: Samyuktha Karthikeyan <[email protected]> Co-authored-by: Sathish Kumar Gnanasekaran <[email protected]>
1 parent 927168a commit c64d656

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config/TR181-WiFi-USGv2.XML

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
</parameter>
208208
<parameter>
209209
<name>WHIX_LogInterval</name>
210-
<type>int[300:3600]</type>
210+
<type>int[60:3600]</type>
211211
<syntax>int</syntax>
212212
<writable>true</writable>
213213
</parameter>

source/stats/wifi_monitor.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ extern void* bus_handle;
157157
//#define UPLOAD_AP_TELEMETRY_INTERVAL_MS 24*60*60*1000 // 24 Hours
158158

159159
//#define NEIGHBOR_SCAN_RESULT_INTERVAL 5000 //5 seconds
160-
#define Min_LogInterval 300 //5 minutes
160+
#define Min_LogInterval 60 //1 minute
161161
#define Max_LogInterval 3600 //60 minutes
162162
#define Min_Chan_Util_LogInterval 5 //5 seconds
163163

@@ -3767,10 +3767,10 @@ long get_sys_uptime()
37673767
gettimeofday(&polling_time, NULL);
37683768

37693769
if ((fp = fopen("/tmp/upload", "r")) == NULL) {
3770-
/* Minimum LOG Interval we can set is 300 sec, just verify every 5 mins any change in the LogInterval
3770+
/* Minimum LOG Interval we can set is 60 sec, just verify every 1 min any change in the LogInterval
37713771
if any change in log_interval do the calculation and dump the VAP status */
37723772
time_gap = polling_time.tv_sec - lastpolledtime;
3773-
if ( time_gap >= 300 )
3773+
if ( time_gap >= 60 )
37743774
{
37753775
logInterval=readLogInterval();
37763776
lastpolledtime = polling_time.tv_sec;

0 commit comments

Comments
 (0)