Skip to content

Commit

Permalink
Version 1.1.0
Browse files Browse the repository at this point in the history
- Added list of all open files to snapshots.
  • Loading branch information
jhuckaby committed Jul 26, 2021
1 parent 387e58d commit 853c7e8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions htdocs/js/pages/Snapshot.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,32 @@ Class.subclass( Page.Base, "Page.Snapshot", {
html += '</div>';
html += '</fieldset>';

// Open Files
if (snapshot.files && snapshot.files.list && snapshot.files.list.length) {
var files_opts = {
id: 't_snap_files',
item_name: 'file',
sort_by: 'pid',
sort_dir: 1,
filter: '',
column_ids: ['pid', 'type', 'desc', 'path'],
column_labels: ["PID", "Type", "Description", "Path/Info"]
};
html += '<fieldset style="margin-top:10px;">';
html += '<legend>Open Files</legend>';
html += '<div class="inline_table_scrollarea">';
html += this.getSortableTable( snapshot.files.list, files_opts, function(item) {
return [
item.pid,
item.type,
item.desc,
'<span style="font-family:monospace; white-space:normal; word-break:break-word;">' + item.path + '</span>'
];
});
html += '</div>';
html += '</fieldset>';
}

// Filesystems
var mounts = [];
for (var key in metadata.data.mounts) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "performa",
"version": "1.0.27",
"version": "1.1.0",
"description": "A multi-server monitoring system with a web based UI.",
"author": "Joseph Huckaby <[email protected]>",
"homepage": "https://github.com/jhuckaby/performa",
Expand Down Expand Up @@ -55,7 +55,7 @@
"pixl-server-api": "^1.0.1",
"pixl-server-user": "^1.0.9",
"pixl-boot": "^2.0.0",
"performa-satellite": "^1.0.4"
"performa-satellite": "^1.1.0"
},
"devDependencies": {
"pixl-unit": "^1.0.9"
Expand Down

0 comments on commit 853c7e8

Please sign in to comment.