Skip to content

Commit

Permalink
Release v0.4 - Fix speed calculation when IP changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiougar committed Apr 14, 2017
1 parent be32f05 commit 2f68342
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CONTROL/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: luci-wrtbwmon
Version: 0.3.1
Version: 0.4
Architecture: all
Maintainer: Georgios Tzourmpakis <kiougar@gmail.com>
Section: net
Expand Down
4 changes: 2 additions & 2 deletions luci-wrtbwmon/htdocs/luci-static/wrtbwmon.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ var scheduleTimeout, updateTimeout, isScheduled = true, interval = 5;
var oldData;
for (var i = 0; i < oldValues.length; i++) {
var cur = oldValues[i];
// compare mac addresses
if (oldValues[i][1] === data[1]) {
// compare mac addresses and ip addresses
if (oldValues[i][1] === data[1] && oldValues[i][2] === data[2]) {
oldData = cur;
break;
}
Expand Down

0 comments on commit 2f68342

Please sign in to comment.