@@ -152,7 +152,7 @@ func FacebookAuth(c *gin.Context) {
152152 upInt , _ := strconv .Atoi (up .Value )
153153
154154 maxTraffic := utils .GetHotspotPreferencesByKey (unit .HotspotId , "CoovaChilli-Max-Total-Octets" )
155- maxTrafficInt , _ := strconv .Atoi (maxTraffic .Value )
155+ maxTrafficInt , _ := strconv .ParseInt (maxTraffic .Value , 10 , 64 )
156156
157157 maxTime := utils .GetHotspotPreferencesByKey (unit .HotspotId , "CoovaChilli-Max-Navigation-Time" )
158158 maxTimeInt , _ := strconv .Atoi (maxTime .Value )
@@ -358,7 +358,7 @@ func LinkedInAuth(c *gin.Context) {
358358 upInt , _ := strconv .Atoi (up .Value )
359359
360360 maxTraffic := utils .GetHotspotPreferencesByKey (unit .HotspotId , "CoovaChilli-Max-Total-Octets" )
361- maxTrafficInt , _ := strconv .Atoi (maxTraffic .Value )
361+ maxTrafficInt , _ := strconv .ParseInt (maxTraffic .Value , 10 , 64 )
362362
363363 maxTime := utils .GetHotspotPreferencesByKey (unit .HotspotId , "CoovaChilli-Max-Navigation-Time" )
364364 maxTimeInt , _ := strconv .Atoi (maxTime .Value )
@@ -536,7 +536,7 @@ func InstagramAuth(c *gin.Context) {
536536 upInt , _ := strconv .Atoi (up .Value )
537537
538538 maxTraffic := utils .GetHotspotPreferencesByKey (unit .HotspotId , "CoovaChilli-Max-Total-Octets" )
539- maxTrafficInt , _ := strconv .Atoi (maxTraffic .Value )
539+ maxTrafficInt , _ := strconv .ParseInt (maxTraffic .Value , 10 , 64 )
540540
541541 maxTime := utils .GetHotspotPreferencesByKey (unit .HotspotId , "CoovaChilli-Max-Navigation-Time" )
542542 maxTimeInt , _ := strconv .Atoi (maxTime .Value )
0 commit comments