Fix up admin CP graphs
This commit is contained in:
parent
aa54e657e1
commit
3ee7d31fa6
1 changed files with 5 additions and 2 deletions
|
@ -521,7 +521,7 @@ $(document).ready(function () {
|
||||||
// Charting Methods |
|
// Charting Methods |
|
||||||
// -----------------+
|
// -----------------+
|
||||||
var memoryGraphSettings = {
|
var memoryGraphSettings = {
|
||||||
title: 'Memory Usage',
|
title: 'Memory Usage (MB)',
|
||||||
data: [{
|
data: [{
|
||||||
'date': new Date(),
|
'date': new Date(),
|
||||||
'memory': -1
|
'memory': -1
|
||||||
|
@ -531,11 +531,12 @@ $(document).ready(function () {
|
||||||
target: document.getElementById('chart_memory'),
|
target: document.getElementById('chart_memory'),
|
||||||
x_accessor: 'date',
|
x_accessor: 'date',
|
||||||
y_accessor: 'memory',
|
y_accessor: 'memory',
|
||||||
|
y_rug: true,
|
||||||
area: false,
|
area: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
var cpuGraphSettings = {
|
var cpuGraphSettings = {
|
||||||
title: 'CPU Usage',
|
title: 'CPU Usage (%)',
|
||||||
data: [{
|
data: [{
|
||||||
'date': new Date(),
|
'date': new Date(),
|
||||||
'cpu': -1
|
'cpu': -1
|
||||||
|
@ -545,6 +546,7 @@ $(document).ready(function () {
|
||||||
target: document.getElementById('chart_cpu'),
|
target: document.getElementById('chart_cpu'),
|
||||||
x_accessor: 'date',
|
x_accessor: 'date',
|
||||||
y_accessor: 'cpu',
|
y_accessor: 'cpu',
|
||||||
|
y_rug: true,
|
||||||
area: false,
|
area: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -559,6 +561,7 @@ $(document).ready(function () {
|
||||||
target: document.getElementById('chart_players'),
|
target: document.getElementById('chart_players'),
|
||||||
x_accessor: 'date',
|
x_accessor: 'date',
|
||||||
y_accessor: 'players',
|
y_accessor: 'players',
|
||||||
|
y_rug: true,
|
||||||
area: false,
|
area: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue