Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Neo4jsource
Commits
510dba6c
Commit
510dba6c
authored
13 years ago
by
Jacob Hansson
Committed by
Chris Gioran
13 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fixed issue with cache hits showing up as "undefined" in webadmin.
parent
11248430
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
community/server/src/main/coffeescript/neo4j/webadmin/modules/dashboard/DashboardRouter.coffee
+0
-4
...t/neo4j/webadmin/modules/dashboard/DashboardRouter.coffee
community/server/src/main/coffeescript/neo4j/webadmin/modules/dashboard/views/DashboardInfoView.coffee
+0
-4
...webadmin/modules/dashboard/views/DashboardInfoView.coffee
community/server/src/main/coffeescript/neo4j/webadmin/modules/dashboard/views/info.haml
+2
-8
...eescript/neo4j/webadmin/modules/dashboard/views/info.haml
with
2 additions
and
16 deletions
+2
-16
community/server/src/main/coffeescript/neo4j/webadmin/modules/dashboard/DashboardRouter.coffee
+
0
-
4
View file @
510dba6c
...
...
@@ -47,7 +47,6 @@ define(
dashboardState
:
@
getDashboardState
()
primitives
:
@
getServerPrimitives
()
diskUsage
:
@
getDiskUsage
()
cacheUsage
:
@
getCacheUsage
()
statistics
:
@
getServerStatistics
()
kernelBean
:
@
getKernelBean
()
...
...
@@ -59,9 +58,6 @@ define(
getDiskUsage
:
=>
@
diskUsage
?=
new
DiskUsage
(
server
:
@
appState
.
getServer
(),
pollingInterval
:
5000
)
getCacheUsage
:
=>
@
cacheUsage
?=
new
CacheUsage
(
server
:
@
appState
.
getServer
(),
pollingInterval
:
5000
)
getServerStatistics
:
=>
@
serverStatistics
?=
new
ServerStatistics
(
server
:
@
appState
.
getServer
()
)
...
...
This diff is collapsed.
Click to expand it.
community/server/src/main/coffeescript/neo4j/webadmin/modules/dashboard/views/DashboardInfoView.coffee
+
0
-
4
View file @
510dba6c
...
...
@@ -32,23 +32,19 @@ define(
initialize
:
(
opts
)
=>
@
primitives
=
opts
.
primitives
@
diskUsage
=
opts
.
diskUsage
@
cacheUsage
=
opts
.
cacheUsage
@
primitives
.
bind
(
"change"
,
@
render
)
@
diskUsage
.
bind
(
"change"
,
@
render
)
@
cacheUsage
.
bind
(
"change"
,
@
render
)
render
:
=>
$
(
@
el
).
html
@
template
primitives
:
@
primitives
diskUsage
:
@
diskUsage
cacheUsage
:
@
cacheUsage
fancyNumber
:
NumberFormatter
.
fancy
return
this
remove
:
=>
@
primitives
.
unbind
(
"change"
,
@
render
)
@
diskUsage
.
unbind
(
"change"
,
@
render
)
@
cacheUsage
.
unbind
(
"change"
,
@
render
)
super
()
)
This diff is collapsed.
Click to expand it.
community/server/src/main/coffeescript/neo4j/webadmin/modules/dashboard/views/info.haml
+
2
-
8
View file @
510dba6c
...
...
@@ -20,16 +20,9 @@
.value
=
htmlEscape
(
fancyNumber
(
primitives
.
get
(
"primitives"
)
.
NumberOfRelationshipTypeIdsInUse
))
.title
relationship types
:if
cacheUsage.isDataAvailable() &&
diskUsage.isDataAvailable()
:if diskUsage.isDataAvailable()
%tr
%td
.box
.value= htmlEscape(fancyNumber(cacheUsage.get("node").NumberOfCachedElements))
.title cached nodes
%td
.box
.value= htmlEscape(fancyNumber(cacheUsage.get("relationship").NumberOfCachedElements))
.title cached relationships
%td
.box
.value= htmlEscape(fancyNumber(Math.round( diskUsage.getDatabaseSize() / (1024 * 1024))) + " MB")
...
...
@@ -38,5 +31,6 @@
.box
.value= htmlEscape(fancyNumber(Math.round( diskUsage.getLogicalLogSize() / (1024 * 1024))) + " MB")
.title logical log disk usage
%td
.break
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment