add an admin panel block to display the open file count
parent
f9706623d5
commit
bf2e5aeca1
|
@ -43,6 +43,7 @@ define([
|
|||
'stats': [
|
||||
'cp-admin-active-sessions',
|
||||
'cp-admin-active-pads',
|
||||
'cp-admin-open-files',
|
||||
'cp-admin-registered',
|
||||
'cp-admin-disk-usage',
|
||||
],
|
||||
|
@ -119,6 +120,17 @@ define([
|
|||
});
|
||||
return $div;
|
||||
};
|
||||
create['open-files'] = function () {
|
||||
var key = 'open-files'; // XXX
|
||||
var $div = makeBlock(key);
|
||||
sFrameChan.query('Q_ADMIN_RPC', {
|
||||
cmd: 'GET_FILE_DESCRIPTOR_COUNT',
|
||||
}, function (e, data) {
|
||||
console.log(e, data);
|
||||
$div.append(h('pre', String(data)));
|
||||
});
|
||||
return $div;
|
||||
};
|
||||
create['registered'] = function () {
|
||||
var key = 'registered';
|
||||
var $div = makeBlock(key);
|
||||
|
|
Loading…
Reference in New Issue