forked from cory/tildefriends
An attempt at making some live graphs of relevant stats. Needs more thought.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3780 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
11
core/core.js
11
core/core.js
@ -293,6 +293,7 @@ var kStaticFiles = [
|
||||
|
||||
{uri: '/split.min.js'},
|
||||
{uri: '/split.min.js.map'},
|
||||
{uri: '/smoothie.js'},
|
||||
{uri: '/codemirror/codemirror.min.js'},
|
||||
{uri: '/codemirror/base16-dark.min.css'},
|
||||
{uri: '/codemirror/matchesonscrollbar.min.css'},
|
||||
@ -562,6 +563,16 @@ async function loadSettings() {
|
||||
}
|
||||
}
|
||||
|
||||
function sendStats() {
|
||||
for (var process of Object.values(gProcesses)) {
|
||||
if (process.app) {
|
||||
process.app.send({action: 'stats', stats: getStats()});
|
||||
}
|
||||
}
|
||||
setTimeout(sendStats, 1000);
|
||||
}
|
||||
setTimeout(sendStats, 1000);
|
||||
|
||||
loadSettings().then(function() {
|
||||
var auth = require("auth");
|
||||
var httpd = require("httpd");
|
||||
|
Reference in New Issue
Block a user