aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/nms2/js/.nms2.js.swp
blob: 37983f6d46d71241928a9c1d7962fe1fb1d08177 (plain)
ofshex dumpascii
0000 62 30 56 49 4d 20 37 2e 34 00 00 00 00 10 00 00 3d 79 1d 55 63 13 02 00 62 4c 00 00 72 6f 6f 74 b0VIM.7.4.......=y.Uc...bL..root
0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0040 00 00 00 00 65 69 6e 73 74 65 69 6e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ....einstein....................
0060 00 00 00 00 00 00 00 00 00 00 00 00 2f 72 6f 6f 74 2f 74 67 6d 61 6e 61 67 65 2f 77 65 62 2f 6e ............/root/tgmanage/web/n
0080 6d 73 2e 67 61 74 68 65 72 69 6e 67 2e 6f 72 67 2f 6e 6d 73 32 2f 6a 73 2f 6e 6d 73 32 2e 6a 73 ms.gathering.org/nms2/js/nms2.js
00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
00e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <
use strict;
use warnings;
use Test::More;


use Catalyst::Test 'FixMyStreet::App';
use Test::WWW::Mechanize::Catalyst 'FixMyStreet::App';

ok( my $mech = Test::WWW::Mechanize::Catalyst->new, 'Created mech object' );

# check that we can get the page
$mech->get_ok('/alert');
$mech->title_like(qr/^Local RSS feeds and email alerts/);
$mech->content_contains('Local RSS feeds and email alerts');
$mech->content_contains('html class="no-js" lang="en-gb"');

# check that we can get list page
$mech->get_ok('/alert/list');
$mech->title_like(qr/^Local RSS feeds and email alerts/);
$mech->content_contains('Local RSS feeds and email alerts');
$mech->content_contains('html class="no-js" lang="en-gb"');

$mech->get_ok('/alert/list?pc=EH99 1SP');
$mech->title_like(qr/^Local RSS feeds and email alerts/);
$mech->content_contains('Here are the types of local problem alerts for &lsquo;EH99&nbsp;1SP&rsquo;');
$mech->content_contains('html class="no-js" lang="en-gb"');
$mech->content_contains('Problems within 8.5km');
$mech->content_contains('rss/pc/EH991SP/2');
$mech->content_contains('rss/pc/EH991SP/5');
$mech->content_contains('rss/pc/EH991SP/10');
$mech->content_contains('rss/pc/EH991SP/20');
$mech->content_contains('Problems within City of Edinburgh');
$mech->content_contains('Problems within City Centre ward');
$mech->content_contains('/rss/reports/City+of+Edinburgh');
$mech->content_contains('/rss/reports/City+of+Edinburgh/City+Centre');
$mech->content_contains('council:2651:City_of_Edinburgh');
$mech->content_contains('ward:2651:20728:City_of_Edinburgh:City_Centre');

$mech->get_ok('/alert/list?pc=High Street');
$mech->content_contains('We found more than one match for that location');

$mech->get_ok('/alert/list?pc=');
$mech->content_contains('hat location does not appear to be covered by a council');

$mech->get_ok('/alert/list?pc=GL502PR');
$mech->content_contains('Problems within the boundary of');

$mech->get_ok('/alert/subscribe?rss=1&type=local&pc=ky16+8yg&rss=Give+me+an+RSS+feed&rznvy=' );
$mech->content_contains('Please select the feed you want');

$mech->get_ok('/alert/subscribe?rss=1&feed=invalid:1000:A_Locationtype=local&pc=ky16+8yg&rss=Give+me+an+RSS+feed&rznvy=');
$mech->content_contains('Illegal feed selection');

$mech->get_ok('/alert/subscribe?rss=1&feed=area:1000:Birmingham');
is $mech->uri->path, '/rss/reports/Birmingham';

$mech->get_ok('/alert/subscribe?rss=1&feed=area:1000:1001:Cheltenham:Lansdown');
is $mech->uri->path, '/rss/area/Cheltenham/Lansdown';

$mech->get_ok('/alert/subscribe?rss=1&feed=council:1000:Gloucestershire');
is $mech->uri->path, '/rss/reports/Gloucestershire';

$mech->get_ok('/alert/subscribe?rss=1&feed=ward:1000:1001:Cheltenham:Lansdown');
is $mech->uri->path, '/rss/reports/Cheltenham/Lansdown';

done_testing();
'>................................ 0aa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0ac0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0ae0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0b00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0b20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0b40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0b60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0b80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0ba0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0bc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0be0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0c00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0c20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0c40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0c60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0c80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0ca0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0cc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0ce0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0d00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0d20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0d40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0d60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0d80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0da0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0dc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0de0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0e00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0e20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0e40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0e60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0e80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0ea0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0ec0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0ee0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0f00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0f20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0f40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0f60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0f80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1000 74 70 01 00 7f 00 00 00 02 00 00 00 00 00 00 00 8b 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 tp.............................. 1020 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 10a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 10c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 10e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 11a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 11c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 11e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1200 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1240 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1280 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 12a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 12c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 12e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1320 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1340 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1360 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1380 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 13a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 13c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 13e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1420 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1440 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1460 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1480 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 14a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 14c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 14e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1500 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1520 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1540 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1560 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1580 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 15a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 15c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 15e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1600 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1620 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1640 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1660 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1680 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 16a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 16c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 16e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1700 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1720 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1740 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1780 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 17a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 17c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 17e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1800 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1820 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1840 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1860 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1880 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 18a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 18c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 18e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1920 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1940 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1960 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1980 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 19a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 19c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 19e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1a00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1a20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1a40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1a60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1a80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1aa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1ac0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1ae0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1b00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1b20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1b40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1b60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1b80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1ba0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1bc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1be0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1c00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1c20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1c40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1c60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1c80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1ca0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1cc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1ce0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1d00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1d20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1d40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1d60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1d80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1da0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1dc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1de0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1e00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1e20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1e40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1e60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1e80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1ea0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1ec0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1ee0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1f00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1f20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1f40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1f60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1f80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 1fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 2000 61 64 00 00 8a 00 00 00 d2 02 00 00 00 10 00 00 8b 00 00 00 00 00 00 00 f4 0f 00 00 e6 0f 00 00 ad.............................. 2020 e3 0f 00 00 e2 0f 00 00 d3 0f 00 00 c3 0f 00 00 b4 0f 00 00 ac 0f 00 00 a1 0f 00 00 a0 0f 00 00 ................................ 2040 9f 0f 00 00 85 0f 00 00 83 0f 00 00 79 0f 00 00 6a 0f 00 00 4d 0f 00 00 39 0f 00 00 09 0f 00 00 ............y...j...M...9....... 2060 ec 0e 00 00 e8 0e 00 00 e3 0e 00 00 e1 0e 00 00 e0 0e 00 00 c9 0e 00 00 c7 0e 00 00 bd 0e 00 00 ................................ 2080 ae 0e 00 00 95 0e 00 00 81 0e 00 00 51 0e 00 00 2a 0e 00 00 f4 0d 00 00 dd 0d 00 00 c2 0d 00 00 ............Q...*............... 20a0 a7 0d 00 00 8c 0d 00 00 7a 0d 00 00 75 0d 00 00 65 0d 00 00 49 0d 00 00 34 0d 00 00 11 0d 00 00 ........z...u...e...I...4....... 20c0 0c 0d 00 00 02 0d 00 00 ee 0c 00 00 ea 0c 00 00 e5 0c 00 00 db 0c 00 00 cc 0c 00 00 ab 0c 00 00 ................................ 20e0 97 0c 00 00 67 0c 00 00 40 0c 00 00 24 0c 00 00 20 0c 00 00 1c 0c 00 00 1a 0c 00 00 19 0c 00 00 ....g...@...$................... 2100 01 0c 00 00 ff 0b 00 00 c7 0b 00 00 95 0b 00 00 80 0b 00 00 66 0b 00 00 41 0b 00 00 30 0b 00 00 ....................f...A...0... 2120 2d 0b 00 00 1e 0b 00 00 04 0b 00 00 f0 0a 00 00 ce 0a 00 00 cb 0a 00 00 c3 0a 00 00 b1 0a 00 00 -............................... 2140 7d 0a 00 00 3a 0a 00 00 38 0a 00 00 36 0a 00 00 35 0a 00 00 1f 0a 00 00 1d 0a 00 00 e5 09 00 00 }...:...8...6...5............... 2160 ad 09 00 00 82 09 00 00 0a 09 00 00 e0 08 00 00 b5 08 00 00 80 08 00 00 4d 08 00 00 33 08 00 00 ........................M...3... 2180 20 08 00 00 f4 07 00 00 f0 07 00 00 d5 07 00 00 b0 07 00 00 7c 07 00 00 45 07 00 00 2c 07 00 00 ....................|...E...,... 21a0 2b 07 00 00 28 07 00 00 11 07 00 00 0f 07 00 00 0e 07 00 00 f7 06 00 00 f5 06 00 00 d8 06 00 00 +...(........................... 21c0 c8 06 00 00 bf 06 00 00 a6 06 00 00 7d 06 00 00 55 06 00 00 3d 06 00 00 2f 06 00 00 2a 06 00 00 ............}...U...=.../...*... 21e0 01 06 00 00 e9 05 00 00 db 05 00 00 d6 05 00 00 5c 05 00 00 0e 05 00 00 c0 04 00 00 a1 04 00 00 ................\............... 2200 5f 04 00 00 51 04 00 00 4c 04 00 00 1d 04 00 00 0f 04 00 00 0b 04 00 00 08 04 00 00 db 03 00 00 _...Q...L....................... 2220 c8 03 00 00 72 03 00 00 71 03 00 00 6f 03 00 00 5d 03 00 00 2d 03 00 00 00 03 00 00 d3 02 00 00 ....r...q...o...]...-........... 2240 d2 02 00 00 13 03 00 00 f8 02 00 00 e1 02 00 00 ab 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 2260 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 2280 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................ 22a0 00 00 00 00 00 00 00 00 00 00 00 00 73 65 74 49 6e 74 65 72 76 61 6c 28 66 75 6e 63 74 69 6f 6e ............setInterval(function 22c0 28 29 7b 75 70 64 61 74 65 53 70 65 65 64 28 29 7d 2c 00 73 65 74 49 6e 74 65 72 76 61 6c 28 66 (){updateSpeed()},.setInterval(f 22e0 75 6e 63 74 69 6f 6e 28 29 7b 75 70 64 61 74 65 53 70 65 65 64 28 29 7d 2c 32 30 30 30 29 3b 00 unction(){updateSpeed()},2000);. 2300 73 65 74 49 6e 74 65 72 76 61 6c 28 66 75 6e 63 74 69 6f 6e 28 29 7b 75 70 64 61 74 65 50 6f 72 setInterval(function(){updatePor 2320 74 73 28 29 7d 2c 32 30 30 30 29 3b 00 73 65 74 49 6e 74 65 72 76 61 6c 28 66 75 6e 63 74 69 6f ts()},2000);.setInterval(functio 2340 6e 28 29 7b 75 70 64 61 74 65 53 77 69 74 63 68 65 73 28 29 7d 2c 35 30 30 30 29 3b 00 75 70 64 n(){updateSwitches()},5000);.upd 2360 61 74 65 53 77 69 74 63 68 65 73 28 29 3b 00 7d 00 00 09 6f 75 74 2e 69 6e 6e 65 72 48 54 4d 4c ateSwitches();.}...out.innerHTML 2380 20 3d 20 22 41 67 67 72 65 67 61 74 65 64 20 73 70 65 65 64 3a 20 22 20 2b 20 28 28 73 70 65 65 .=."Aggregated.speed:.".+.((spee 23a0 64 5f 69 6e 29 20 2f 20 31 30 32 34 29 2e 74 6f 50 72 65 63 69 73 69 6f 6e 28 35 29 20 2b 20 22 d_in)./.1024).toPrecision(5).+." 23c0 20 47 42 2f 73 22 3b 00 09 73 70 65 65 64 20 3d 20 73 70 65 65 64 5f 69 6e 3b 00 09 76 61 72 20 .GB/s";..speed.=.speed_in;..var. 23e0 6f 75 74 20 3d 20 64 6f 63 75 6d 65 6e 74 2e 67 65 74 45 6c 65 6d 65 6e 74 42 79 49 64 28 22 73 out.=.document.getElementById("s 2400 70 65 65 64 22 29 3b 00 09 7d 00 09 09 7d 00 09 09 09 63 6f 75 6e 74 65 72 2b 2b 3b 00 09 09 09 peed");..}...}....counter++;.... 2420 73 70 65 65 64 5f 69 6e 20 2b 3d 20 70 61 72 73 65 49 6e 74 28 64 69 66 66 76 61 6c 2f 64 69 66 speed_in.+=.parseInt(diffval/dif 2440 66 29 20 2f 20 31 30 32 34 20 3b 00 09 09 09 7d 00 09 09 09 09 63 6f 6e 74 69 6e 75 65 3b 00 09 f)./.1024.;....}.....continue;.. 2460 09 09 69 66 20 28 74 68 65 6e 20 3d 3d 20 30 20 7c 7c 20 6e 6f 77 20 3d 3d 20 30 20 7c 7c 20 64 ..if.(then.==.0.||.now.==.0.||.d 2480 69 66 66 76 61 6c 20 3d 3d 20 30 20 7c 7c 20 64 69 66 66 76 61 6c 20 3d 3d 20 4e 61 4e 29 20 7b iffval.==.0.||.diffval.==.NaN).{ 24a0 00 09 09 09 76 61 72 20 64 69 66 66 76 61 6c 20 3d 20 28 6e 6f 77 20 2d 20 74 68 65 6e 29 3b 00 ....var.diffval.=.(now.-.then);. 24c0 09 09 09 76 61 72 20 6e 6f 77 20 3d 20 20 70 61 72 73 65 49 6e 74 28 20 70 6f 72 74 73 5f 6e 6f ...var.now.=..parseInt(.ports_no 24e0 77 5b 73 77 5d 5b 22 70 6f 72 74 73 22 5d 5b 70 6f 72 74 5d 5b 22 69 66 68 63 69 6e 6f 63 74 65 w[sw]["ports"][port]["ifhcinocte 2500 74 73 22 5d 29 20 2f 20 31 30 32 34 3b 00 09 09 09 76 61 72 20 74 68 65 6e 20 3d 20 70 61 72 73 ts"])./.1024;....var.then.=.pars 2520 65 49 6e 74 28 70 6f 72 74 73 5f 74 68 65 6e 5b 73 77 5d 5b 22 70 6f 72 74 73 22 5d 5b 70 6f 72 eInt(ports_then[sw]["ports"][por 2540 74 5d 5b 22 69 66 68 63 69 6e 6f 63 74 65 74 73 22 5d 29 20 2f 20 31 30 32 34 3b 00 09 09 09 76 t]["ifhcinoctets"])./.1024;....v 2560 61 72 20 64 69 66 66 20 3d 20 70 61 72 73 65 49 6e 74 28 70 61 72 73 65 49 6e 74 28 70 6f 72 74 ar.diff.=.parseInt(parseInt(port 2580 73 5f 6e 6f 77 5b 73 77 5d 5b 22 70 6f 72 74 73 22 5d 5b 70 6f 72 74 5d 5b 22 74 69 6d 65 22 5d s_now[sw]["ports"][port]["time"] 25a0 29 20 2d 20 70 61 72 73 65 49 6e 74 28 70 6f 72 74 73 5f 74 68 65 6e 5b 73 77 5d 5b 22 70 6f 72 ).-.parseInt(ports_then[sw]["por 25c0 74 73 22 5d 5b 70 6f 72 74 5d 5b 22 74 69 6d 65 22 5d 29 29 3b 00 09 09 09 7d 00 09 09 09 09 63 ts"][port]["time"]));....}.....c 25e0 6f 6e 74 69 6e 75 65 3b 00 09 09 09 09 63 6f 6e 73 6f 6c 65 2e 6c 6f 67 28 22 6f 70 73 22 29 3b ontinue;.....console.log("ops"); 2600 00 09 09 09 69 66 20 28 21 70 6f 72 74 73 5f 74 68 65 6e 5b 73 77 5d 5b 22 70 6f 72 74 73 22 5d ....if.(!ports_then[sw]["ports"] 2620 5b 70 6f 72 74 5d 29 20 7b 00 09 09 09 7d 00 09 09 09 09 63 6f 6e 74 69 6e 75 65 3b 00 09 09 09 [port]).{....}.....continue;.... 2640 09 63 6f 6e 73 6f 6c 65 2e 6c 6f 67 28 22 6f 70 73 22 29 3b 00 09 09 09 69 66 20 28 21 70 6f 72 .console.log("ops");....if.(!por 2660 74 73 5f 6e 6f 77 5b 73 77 5d 5b 22 70 6f 72 74 73 22 5d 5b 70 6f 72 74 5d 29 20 7b 00 09 09 66 ts_now[sw]["ports"][port]).{...f 2680 6f 72 20 28 70 6f 72 74 20 69 6e 20 70 6f 72 74 73 5f 6e 6f 77 5b 73 77 5d 5b 22 70 6f 72 74 73 or.(port.in.ports_now[sw]["ports 26a0 22 5d 29 20 7b 00 09 66 6f 72 20 28 73 77 20 69 6e 20 70 6f 72 74 73 5f 6e 6f 77 29 20 7b 00 09 "]).{..for.(sw.in.ports_now).{.. 26c0 76 61 72 20 73 77 3b 00 09 76 61 72 20 63 6f 75 6e 74 65 72 3d 30 3b 00 09 76 61 72 20 73 70 65 var.sw;..var.counter=0;..var.spe 26e0 65 64 5f 69 6e 20 3d 20 70 61 72 73 65 49 6e 74 28 30 29 3b 00 7b 00 66 75 6e 63 74 69 6f 6e 20 ed_in.=.parseInt(0);.{.function. 2700 75 70 64 61 74 65 53 70 65 65 64 28 29 00 00 7d 00 09 6f 75 74 2e 69 6e 6e 65 72 48 54 4d 4c 20 updateSpeed()..}..out.innerHTML. 2720 3d 20 74 6d 70 32 3b 00 09 7d 00 00 09 09 74 6d 70 32 20 2b 3d 20 22 2d 2d 2d 2d 2d 2d 2d 2d 2d =.tmp2;..}....tmp2.+=."--------- 2740 5c 6e 22 3b 00 09 09 74 6d 70 32 20 2b 3d 20 20 70 61 72 73 65 49 6e 74 28 28 28 64 69 66 66 76 \n";...tmp2.+=..parseInt(((diffv 2760 61 6c 29 2f 64 69 66 66 29 2f 31 30 32 34 29 20 2b 20 22 20 6b 2f 73 5c 6e 22 3b 00 09 09 74 6d al)/diff)/1024).+.".k/s\n";...tm 2780 70 32 20 2b 3d 20 20 22 64 69 66 66 3a 20 22 20 2b 20 78 20 2b 20 22 3a 20 22 20 2b 20 28 64 69 p2.+=.."diff:.".+.x.+.":.".+.(di 27a0 66 66 76 61 6c 29 20 2b 20 22 20 3a 20 22 3b 00 09 09 74 6d 70 32 20 2b 3d 20 20 22 20 20 20 20 ffval).+.".:.";...tmp2.+=..".... 27c0 20 20 28 22 20 2b 20 74 68 65 6e 20 2b 20 22 29 5c 6e 22 3b 00 09 09 74 6d 70 32 20 2b 3d 20 20 ..(".+.then.+.")\n";...tmp2.+=.. 27e0 78 20 2b 20 22 3a 20 22 20 2b 20 6e 6f 77 3b 00 09 09 7d 00 09 09 09 64 69 66 66 76 61 6c 20 3d x.+.":.".+.now;...}....diffval.= 2800 20 28 6e 6f 77 20 2b 20 4d 61 74 68 2e 70 6f 77 28 32 2c 33 32 29 29 20 2d 20 74 68 65 6e 3b 00 .(now.+.Math.pow(2,32)).-.then;. 2820 09 09 69 66 20 28 64 69 66 66 76 61 6c 3c 30 29 20 7b 00 09 09 64 69 66 66 76 61 6c 20 3d 20 28 ..if.(diffval<0).{...diffval.=.( 2840 6e 6f 77 20 2d 20 74 68 65 6e 29 3b 00 09 09 6e 6f 77 20 3d 20 70 61 72 73 65 49 6e 74 28 70 6f now.-.then);...now.=.parseInt(po 2860 72 74 73 5f 6e 6f 77 5b 73 77 5d 5b 22 70 6f 72 74 73 22 5d 5b 70 6f 72 74 5d 5b 78 5d 29 3b 00 rts_now[sw]["ports"][port][x]);. 2880 09 09 74 68 65 6e 20 3d 20 70 61 72 73 65 49 6e 74 28 70 6f 72 74 73 5f 74 68 65 6e 5b 73 77 5d ..then.=.parseInt(ports_then[sw] 28a0 5b 22 70 6f 72 74 73 22 5d 5b 70 6f 72 74 5d 5b 78 5d 29 3b 00 09 66 6f 72 20 28 78 20 69 6e 20 ["ports"][port][x]);..for.(x.in. 28c0 70 6f 72 74 73 5f 6e 6f 77 5b 73 77 5d 5b 22 70 6f 72 74 73 22 5d 5b 70 6f 72 74 5d 29 20 7b 00 ports_now[sw]["ports"][port]).{. 28e0 09 76 61 72 20 74 6d 70 32 20 3d 20 22 74 69 6d 65 20 64 69 66 66 3a 20 22 20 2b 20 64 69 66 66 .var.tmp2.=."time.diff:.".+.diff 2900 20 2b 20 22 73 5c 6e 22 3b 00 09 76 61 72 20 64 69 66 66 20 3d 20 70 61 72 73 65 49 6e 74 28 70 .+."s\n";..var.diff.=.parseInt(p 2920 61 72 73 65 49 6e 74 28 70 6f 72 74 73 5f 6e 6f 77 5b 73 77 5d 5b 22 70 6f 72 74 73 22 5d 5b 70 arseInt(ports_now[sw]["ports"][p 2940 6f 72 74 5d 5b 22 74 69 6d 65 22 5d 29 20 2d 20 70 61 72 73 65 49 6e 74 28 70 6f 72 74 73 5f 74 ort]["time"]).-.parseInt(ports_t 2960 68 65 6e 5b 73 77 5d 5b 22 70 6f 72 74 73 22 5d 5b 70 6f 72 74 5d 5b 22 74 69 6d 65 22 5d 29 29 hen[sw]["ports"][port]["time"])) 2980 3b 00 09 76 61 72 20 6f 75 74 20 3d 20 64 6f 63 75 6d 65 6e 74 2e 67 65 74 45 6c 65 6d 65 6e 74 ;..var.out.=.document.getElement 29a0 42 79 49 64 28 22 66 6f 6f 22 29 3b 00 09 76 61 72 20 70 6f 72 74 20 3d 20 64 6f 63 75 6d 65 6e ById("foo");..var.port.=.documen 29c0 74 2e 67 65 74 45 6c 65 6d 65 6e 74 42 79 49 64 28 22 70 6f 72 74 2d 6c 69 73 74 22 29 2e 76 61 t.getElementById("port-list").va 29e0 6c 75 65 3b 00 09 76 61 72 20 73 77 20 3d 20 64 6f 63 75 6d 65 6e 74 2e 67 65 74 45 6c 65 6d 65 lue;..var.sw.=.document.getEleme 2a00 6e 74 42 79 49 64 28 22 73 77 69 74 63 68 2d 6c 69 73 74 22 29 2e 76 61 6c 75 65 3b 00 7b 00 66 ntById("switch-list").value;.{.f 2a20 75 6e 63 74 69 6f 6e 20 70 6f 72 74 43 68 61 6e 67 65 28 29 00 00 7d 00 09 00 09 69 6e 66 6f 2e unction.portChange()..}....info. 2a40 76 61 6c 75 65 20 3d 20 22 54 65 6d 70 3a 20 22 20 2b 20 20 69 6e 66 72 61 5b 22 73 77 69 74 63 value.=."Temp:.".+..infra["switc 2a60 68 65 73 22 5d 5b 73 77 5d 5b 22 74 65 6d 70 22 5d 20 2b 20 22 20 c2 b0 43 22 3b 09 00 09 76 61 hes"][sw]["temp"].+."...C";...va 2a80 72 20 69 6e 66 6f 20 3d 20 64 6f 63 75 6d 65 6e 74 2e 67 65 74 45 6c 65 6d 65 6e 74 42 79 49 64 r.info.=.document.getElementById 2aa0 28 22 73 77 69 74 63 68 2d 69 6e 66 6f 22 29 3b 00 09 09 6c 69 73 74 2e 76 61 6c 75 65 20 3d 20 ("switch-info");...list.value.=. 2ac0 76 3b 00 09 69 66 20 28 76 29 00 09 7d 00 09 09 6c 69 73 74 2e 61 64 64 28 6e 65 77 20 4f 70 74 v;..if.(v)..}...list.add(new.Opt 2ae0 69 6f 6e 28 61 72 72 61 79 5b 78 5d 29 29 3b 00 09 66 6f 72 20 28 78 20 69 6e 20 61 72 72 61 79 ion(array[x]));..for.(x.in.array 2b00 29 20 7b 00 09 6c 69 73 74 2e 6f 70 74 69 6f 6e 73 2e 6c 65 6e 67 74 68 20 3d 20 30 3b 00 09 61 ).{..list.options.length.=.0;..a 2b20 72 72 61 79 2e 73 6f 72 74 28 29 3b 00 09 7d 00 09 09 61 72 72 61 79 2e 70 75 73 68 28 78 29 3b rray.sort();..}...array.push(x); 2b40 00 09 66 6f 72 20 28 78 20 69 6e 20 70 6f 72 74 73 5f 6e 6f 77 5b 73 77 5d 5b 22 70 6f 72 74 73 ..for.(x.in.ports_now[sw]["ports 2b60 22 5d 29 20 7b 00 09 76 61 72 20 61 72 72 61 79 20 3d 20 6e 65 77 20 41 72 72 61 79 28 29 3b 00 "]).{..var.array.=.new.Array();. 2b80 09 76 61 72 20 76 20 3d 20 6c 69 73 74 2e 76 61 6c 75 65 3b 00 09 76 61 72 20 6c 69 73 74 20 3d .var.v.=.list.value;..var.list.= 2ba0 20 64 6f 63 75 6d 65 6e 74 2e 67 65 74 45 6c 65 6d 65 6e 74 42 79 49 64 28 22 70 6f 72 74 2d 6c .document.getElementById("port-l 2bc0 69 73 74 22 29 3b 00 09 76 61 72 20 73 77 20 3d 20 64 6f 63 75 6d 65 6e 74 2e 67 65 74 45 6c 65 ist");..var.sw.=.document.getEle 2be0 6d 65 6e 74 42 79 49 64 28 22 73 77 69 74 63 68 2d 6c 69 73 74 22 29 2e 76 61 6c 75 65 3b 00 7b mentById("switch-list").value;.{ 2c00 00 66 75 6e 63 74 69 6f 6e 20 73 77 69 74 63 68 43 68 61 6e 67 65 28 29 00 00 7d 00 09 7d 29 00 .function.switchChange()..}..}). 2c20 09 09 7d 00 09 09 09 70 6f 72 74 73 5f 74 68 65 6e 20 3d 20 73 77 69 74 63 68 64 61 74 61 3b 00 ..}....ports_then.=.switchdata;. 2c40 09 09 09 76 61 72 20 20 73 77 69 74 63 68 64 61 74 61 20 3d 20 4a 53 4f 4e 2e 70 61 72 73 65 28 ...var..switchdata.=.JSON.parse( 2c60 64 61 74 61 29 3b 00 09 09 73 75 63 63 65 73 73 3a 20 66 75 6e 63 74 69 6f 6e 20 28 64 61 74 61 data);...success:.function.(data 2c80 2c 20 74 65 78 74 53 74 61 74 75 73 2c 20 6a 71 58 48 52 29 20 7b 00 09 09 64 61 74 61 54 79 70 ,.textStatus,.jqXHR).{...dataTyp 2ca0 65 3a 20 22 74 65 78 74 22 2c 00 09 09 75 72 6c 3a 20 22 2f 70 6f 72 74 2d 73 74 61 74 65 2e 70 e:."text",...url:."/port-state.p 2cc0 6c 3f 74 69 6d 65 3d 35 6d 22 2c 00 09 09 74 79 70 65 3a 20 22 47 45 54 22 2c 00 09 24 2e 61 6a l?time=5m",...type:."GET",..$.aj 2ce0 61 78 28 7b 00 09 7d 29 3b 00 09 09 7d 00 09 09 09 09 6c 69 73 74 2e 76 61 6c 75 65 20 3d 20 76 ax({..});...}.....list.value.=.v 2d00 3b 00 09 09 09 69 66 20 28 76 29 00 09 09 09 7d 00 09 09 09 09 6c 69 73 74 2e 61 64 64 28 6e 65 ;....if.(v)....}.....list.add(ne 2d20 77 20 4f 70 74 69 6f 6e 28 61 72 72 79 5b 78 5d 29 29 3b 00 09 09 09 66 6f 72 20 28 78 20 69 6e w.Option(arry[x]));....for.(x.in 2d40 20 61 72 72 79 29 20 7b 00 09 09 09 6c 69 73 74 2e 6f 70 74 69 6f 6e 73 2e 6c 65 6e 67 74 68 20 .arry).{....list.options.length. 2d60 3d 20 30 3b 00 09 09 09 61 72 72 79 2e 73 6f 72 74 28 29 3b 00 09 09 09 7d 00 09 09 09 09 61 72 =.0;....arry.sort();....}.....ar 2d80 72 79 2e 70 75 73 68 28 78 29 3b 00 09 09 09 66 6f 72 20 28 78 20 69 6e 20 73 77 69 74 63 68 64 ry.push(x);....for.(x.in.switchd 2da0 61 74 61 29 20 7b 00 09 09 09 70 6f 72 74 73 5f 6e 6f 77 20 3d 20 73 77 69 74 63 68 64 61 74 61 ata).{....ports_now.=.switchdata 2dc0 3b 00 09 09 09 76 61 72 20 61 72 72 79 20 3d 20 6e 65 77 20 41 72 72 61 79 28 29 3b 00 09 09 09 ;....var.arry.=.new.Array();.... 2de0 76 61 72 20 76 20 3d 20 6c 69 73 74 2e 76 61 6c 75 65 3b 00 09 09 09 76 61 72 20 6c 69 73 74 20 var.v.=.list.value;....var.list. 2e00 3d 20 64 6f 63 75 6d 65 6e 74 2e 67 65 74 45 6c 65 6d 65 6e 74 42 79 49 64 28 22 73 77 69 74 63 =.document.getElementById("switc 2e20 68 2d 6c 69 73 74 22 29 3b 00 09 09 09 76 61 72 20 20 73 77 69 74 63 68 64 61 74 61 20 3d 20 4a h-list");....var..switchdata.=.J 2e40 53 4f 4e 2e 70 61 72 73 65 28 64 61 74 61 29 3b 00 09 09 73 75 63 63 65 73 73 3a 20 66 75 6e 63 SON.parse(data);...success:.func 2e60 74 69 6f 6e 20 28 64 61 74 61 2c 20 74 65 78 74 53 74 61 74 75 73 2c 20 6a 71 58 48 52 29 20 7b tion.(data,.textStatus,.jqXHR).{ 2e80 00 09 09 64 61 74 61 54 79 70 65 3a 20 22 74 65 78 74 22 2c 00 09 09 75 72 6c 3a 20 22 2f 70 6f ...dataType:."text",...url:."/po 2ea0 72 74 2d 73 74 61 74 65 2e 70 6c 22 2c 00 09 09 74 79 70 65 3a 20 22 47 45 54 22 2c 00 09 24 2e rt-state.pl",...type:."GET",..$. 2ec0 61 6a 61 78 28 7b 00 7b 00 66 75 6e 63 74 69 6f 6e 20 75 70 64 61 74 65 50 6f 72 74 73 28 29 00 ajax({.{.function.updatePorts(). 2ee0 00 7d 00 09 7d 29 3b 00 09 09 7d 00 09 09 09 69 6e 66 72 61 20 3d 20 4a 53 4f 4e 2e 70 61 72 73 .}..});...}....infra.=.JSON.pars 2f00 65 28 64 61 74 61 29 3b 00 09 09 73 75 63 63 65 73 73 3a 20 66 75 6e 63 74 69 6f 6e 20 28 64 61 e(data);...success:.function.(da 2f20 74 61 2c 20 74 65 78 74 53 74 61 74 75 73 2c 20 6a 71 58 48 52 29 20 7b 00 09 09 64 61 74 61 54 ta,.textStatus,.jqXHR).{...dataT 2f40 79 70 65 3a 20 22 74 65 78 74 22 2c 00 09 09 75 72 6c 3a 20 22 2f 73 77 69 74 63 68 65 73 2d 6a ype:."text",...url:."/switches-j 2f60 73 6f 6e 32 2e 70 6c 22 2c 00 09 09 74 79 70 65 3a 20 22 47 45 54 22 2c 00 09 24 2e 61 6a 61 78 son2.pl",...type:."GET",..$.ajax 2f80 28 7b 00 7b 00 66 75 6e 63 74 69 6f 6e 20 75 70 64 61 74 65 53 77 69 74 63 68 65 73 28 29 00 00 ({.{.function.updateSwitches().. 2fa0 00 76 61 72 20 69 6e 66 72 61 3b 00 76 61 72 20 73 77 3b 00 76 61 72 20 73 70 65 65 64 20 3d 20 .var.infra;.var.sw;.var.speed.=. 2fc0 30 3b 00 76 61 72 20 70 6f 72 74 73 5f 74 68 65 6e 3b 00 76 61 72 20 70 6f 72 74 73 5f 6e 6f 77 0;.var.ports_then;.var.ports_now 2fe0 3b 00 00 7d 3b 00 09 64 65 62 75 67 3a 20 74 72 75 65 2c 00 76 61 72 20 6e 6d 73 20 3d 20 7b 00 ;..};..debug:.true,.var.nms.=.{.