Skip to content

Commit

Permalink
fix server view
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeTWC1984 committed Apr 3, 2024
1 parent cc36b7d commit 9a07574
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion htdocs/js/pages/admin/Servers.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Class.add( Page.Admin, {
var tds = [
'<div class="td_big" style="font-weight:normal"><div class="ellip" style="max-width:'+col_width+'px;"><i class="fa fa-eye">&nbsp;</i>' + server.hostname.replace(/\.[\w\-]+\.\w+$/, '') + '</div></div>',
(server.ip || 'n/a').replace(/^\:\:ffff\:(\d+\.\d+\.\d+\.\d+)$/, '$1'),
'-', '(Nearby)', '-', '-', '-', '-', '-', '-',
'-', '(Nearby)', '-', '-', '-', '-', '-', '-', '-',
'<span class="link" onMouseUp="$P().add_server_from_list('+idx+')"><b>Add Server</b></span>'
];
tds.className = 'blue';
Expand Down
6 changes: 3 additions & 3 deletions lib/comm.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ module.exports = Class.create({
disabled: 0,
pid: process.pid,
nodev: process.version,
engine: this.storage.config.get('engine') || 'unknown'
engine: this.storage.config.get('engine')
};

// then add all workers
Expand All @@ -497,8 +497,8 @@ module.exports = Class.create({
data: worker.data || {},
disabled: worker.disabled || 0,
pid: worker.pid || -1,
// nodev: worker.nodev || 'NA',
engine: worker.engine || 'unknown'
nodev: worker.nodev || 'NA',
// engine: worker.engine || 'unknown'
};
} // unique hostname
} // foreach worker
Expand Down

0 comments on commit 9a07574

Please sign in to comment.