Skip to content

Commit

Permalink
Merge branch 'Frost-Lord:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Green authored Oct 18, 2023
2 parents 3b82c70 + 23f4bac commit d96b948
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 6,507 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ cd /etc/logshield
npm install
cp example.env .env
# Edit .env
nano .env # Change all vars you want
# Start a system process
cp logshield.service /etc/systemd/system/logshield.service
systemctl enable --now logshield
```
Expand Down
4 changes: 1 addition & 3 deletions api/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const { bandwidth } = require('../middleware/bandwidth');
const os = require('node:os');
const pidusage = require('pidusage');


module.exports = (router, client, checkAuth) => {
router.post("/admin", checkAuth, async (req, res) => {
const processStats = await pidusage(process.pid);
Expand Down Expand Up @@ -46,7 +45,6 @@ module.exports = (router, client, checkAuth) => {
"networkInterfaces": os.networkInterfaces(),
},
}

res.send(data);
});
};
};
Loading

0 comments on commit d96b948

Please sign in to comment.