diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-10-13 17:53:59 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-10-13 17:53:59 +0200 |
commit | 1295b8f844f914feeeef245229ca166b93ca37cd (patch) | |
tree | 508dfed686b140da66893b509a94615b53bd150f /src/de/blinkt/openvpn/core/DeviceStateReceiver.java | |
parent | d2dc6fa6fc12ca876bb3dcf099ec6694dc7ef061 (diff) |
Working LogFragment
--HG--
rename : res/layout-w720dp/logwindow.xml => res/layout-w720dp/log_fragment.xml
rename : res/layout/logwindow.xml => res/layout/log_fragment.xml
rename : src/de/blinkt/openvpn/LogWindow.java => src/de/blinkt/openvpn/fragments/LogFragment.java
Diffstat (limited to 'src/de/blinkt/openvpn/core/DeviceStateReceiver.java')
-rw-r--r-- | src/de/blinkt/openvpn/core/DeviceStateReceiver.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/de/blinkt/openvpn/core/DeviceStateReceiver.java b/src/de/blinkt/openvpn/core/DeviceStateReceiver.java index 8a148e10..250edf42 100644 --- a/src/de/blinkt/openvpn/core/DeviceStateReceiver.java +++ b/src/de/blinkt/openvpn/core/DeviceStateReceiver.java @@ -50,11 +50,11 @@ public class DeviceStateReceiver extends BroadcastReceiver implements ByteCountL LinkedList<Datapoint> trafficdata = new LinkedList<DeviceStateReceiver.Datapoint>();
@Override
- public void updateByteCount(long in, long out, long diffin, long diffout) {
+ public void updateByteCount(long in, long out, long diffIn, long diffOut) {
if (screen != connectState.PENDINGDISCONNECT)
return;
- long total = diffin + diffout;
+ long total = diffIn + diffOut;
trafficdata.add(new Datapoint(System.currentTimeMillis(), total));
while (trafficdata.getFirst().timestamp <= (System.currentTimeMillis() - TRAFFIC_WINDOW * 1000)) {
|