Skip to content

Commit 3f2f4e9

Browse files
committed
Bring page cache back in sysinfo
1 parent 88c7046 commit 3f2f4e9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/scripts/controllers/SysinfoController.coffee

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ angular.module('neo4jApp.controllers')
5151
for a in r.attributes
5252
$scope.sysinfo.primitives[a.name] = a.value
5353
else if r.name == "org.neo4j:instance=kernel#0,name=Page cache"
54+
$scope.sysinfo.cache.available = true
5455
for a in r.attributes
5556
$scope.sysinfo.cache[a.name] = a.value
5657
else if "org.neo4j:instance=kernel#0,name=Transactions"
@@ -73,7 +74,12 @@ angular.module('neo4jApp.controllers')
7374
connectedMemberId = a.value
7475
$scope.sysinfo.ha[a.name] = a.value
7576
$scope.sysinfo.ha.ClusterMembers[connectedMemberId].connected = true
76-
).catch((r)-> $scope.sysinfo.kernel = {})
77+
).catch((r) ->
78+
$scope.sysinfo.kernel = {}
79+
$scope.sysinfo.primitives = {}
80+
$scope.sysinfo.cache = { available: false }
81+
$scope.sysinfo.tx = {available: false}
82+
$scope.sysinfo.ha = { clustered: false })
7783

7884
timer = null
7985
refreshLater = () =>

0 commit comments

Comments
 (0)