Skip to content

Commit

Permalink
extractinfo improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
acktarius committed Jun 23, 2023
1 parent 759cb59 commit 9dd9f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/forMiner/extractInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const extractInfo = async () => {
const { reverser, afterUntil, backWard, inBetween, inBetweenLong, startWithLong, beforeUntil } = require('./tools.js');
const minerNb = minersDB.users.length +1;
let wDir = afterUntil(data, "WorkingDirectory=", "\n");
wDir = (! (wDir.slice((wDir.length - 1), (wDir.length)) == "/")) ? wDir + "/" : wDir;
wDir = (wDir.charAt(wDir.length - 1) != "/") ? wDir + "/" : wDir;
const mPath = afterUntil(data, "ExecStart=", "\n");
const softWare = (data.search("SRB") > 0) ? "SRBMiner-Multi" : (data.search("xmr-stak") > 0) ? "XmrStak" : (data.search("CryptoDredge") > 0) ? "CryptoDredge" : "unKnown";

Expand Down

0 comments on commit 9dd9f41

Please sign in to comment.