Closed Bug 963905 Opened 12 years ago Closed 12 years ago

Data usage calculation is very imprecise

Categories

(Firefox OS Graveyard :: Gaia::Cost Control, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: iacchi, Unassigned)

References

Details

Either data usage calculation is really imprecise, or my carrier has some problems recording it. And since the error is on my advantage, I really doubt it. My carrier rounds up used data big time (it has 1 MB increments per session, so if you use only 50 kB in one session it still charge 1 MB), but despite that data usage reported by the phone is always quite higher than the one reported by my carrier.
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
(In reply to Iacopo Benesperi [:iacchi] from comment #0) > Either data usage calculation is really imprecise, or my carrier has some > problems recording it. And since the error is on my advantage, I really > doubt it. > My carrier rounds up used data big time (it has 1 MB increments per session, > so if you use only 50 kB in one session it still charge 1 MB), but despite > that data usage reported by the phone is always quite higher than the one > reported by my carrier. Hi, First of all you need to take into account that some carriers doesn't charge for some traffic depending on the application or the type of the traffic. If you are sure is not your case, you can check if costcontrol is reporting the correct traffic amount by doing: 1 Check current traffic in costcontrol. 2 Run: adb shell cat /proc/net/dev 3 Use data, don't reset the phone. 4 Check current traffic in costcontrol. 5 Run again: adb shell cat /proc/net/dev Costcontrol is provided with usage through you 3G interface (ussually rmnet0), which is also stored in /proc/net/dev. So the ammount of traffic of data usage between 1 and 4 should be the same than the interval between 2 and 4. Notice that /proc/net/dev gives rx an tx splitted, you should add them. However, is normal that amount of traffic counted in the terminal and the amount of the carrier are not equal, surely some control traffic is not counted by the carrier. Please, check differences between carrier and your phone and give us some numbers to see if something is wrong. Feel free to add the output of cc and /proc/net/dev in order to evaluate it.
Not able to reproduce it. If your problem persist and you can give us more info, feel free to reopen.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.