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

Commit

Permalink
debug show users
Browse files Browse the repository at this point in the history
  • Loading branch information
boypt committed Jul 14, 2021
1 parent 2c46b84 commit f255ddd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions static/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ <h2>
</div>
<div>
<span>Up {{ ago([[.Uptime]]*1000) }}</span>
</div>
<div ng-if="numKeys(state.Users) > 1">
<span>,{{ numKeys(state.Users) }} users connected</span>
<span ng-if="numKeys(state.Users) > 1">,{{ numKeys(state.Users) }} users connected</span>
</div>
</footer>
<div ng-if="$root.showEnineStatus" class="ui attached mini message">
Expand All @@ -96,13 +94,14 @@ <h2>
<span> mem {{ state.Stats.System.memUsedPercent | round }}%, </span>
<span> disk {{ state.Stats.System.diskUsedPercent | round }}% </span>
</p>
<div class="header">
Torrent Trackers
</div>
<div class="header"> Online Users </div>
<ul ng-repeat="(key, value) in state.Users ">
<li>ID:{{key}} - IP:{{value}}</li>
</ul>

<div class="header"> Torrent Trackers </div>
<pre>{{ Trackers }}</pre>
<div class="header">
Torrent Engine Status
</div>
<div class="header"> Torrent Engine Status </div>
<pre>{{ EngineStatus }}</pre>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion static/files/js/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ app.run(function ($rootScope, $window, $location, $log, search, api, apiget, sto
case "enginedebug":
$rootScope.showEnineStatus = !$rootScope.showEnineStatus;
if ($rootScope.showEnineStatus) {
$rootScope.EngineStatus = "loading...";
$rootScope.EngineStatus = $scope.Trackers = "loading...";
apiget.enginedebug().then(function (xhr) {
$scope.EngineStatus = xhr.data.EngineStatus;
$scope.Trackers = xhr.data.Trackers.join("\n");
Expand Down

0 comments on commit f255ddd

Please sign in to comment.