Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
Tracker: Track pathfind time.
Browse files Browse the repository at this point in the history
  • Loading branch information
vhpoet authored and justmoon committed Mar 12, 2014
1 parent 49dd589 commit eb9e1ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/tabs/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,8 @@ SendTab.prototype.angular = function (module)
'Address Type': $scope.send.bitcoin ? 'bitcoin' :
$scope.send.federation ? 'federation' : 'ripple',
'Destination Tag': !!$scope.send.dt,
'Paths': upd.alternatives.length
'Paths': upd.alternatives.length,
'Time': (+new Date() - +pathFindTime) / 1000
});

tracked = true;
Expand All @@ -640,6 +641,8 @@ SendTab.prototype.angular = function (module)
'Destination Tag': !!$scope.send.dt
})
});

var pathFindTime = new Date();
};

$scope.handle_paths = function (data) {
Expand Down

0 comments on commit eb9e1ab

Please sign in to comment.