Skip to content

Commit

Permalink
Don't take up so much horizontal space with tail windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alainbryden committed Nov 2, 2024
1 parent e9beae8 commit df19ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ export function tail(ns, processId = undefined) {
return //ns.tprint(`PID was previously moved ${processId}`);
// By default, make all tail windows take up 75% of the width, 25% of the height available
const [width, height] = ns.ui.windowSize();
ns.resizeTail(width * 0.75, height * 0.25, processId);
ns.resizeTail(width * 0.60, height * 0.25, processId);
// Cascade windows: After each tail, shift the window slightly down and over so that they don't overlap
let offsetPct = ((((tailedPids.size % 30.0) / 30.0) + tailedPids.size) % 6.0) / 6.0;
ns.moveTail(offsetPct * (width * 0.25 - 300) + 250, offsetPct * (height * 0.75 - 100) + 50, processId);
Expand Down

0 comments on commit df19ce1

Please sign in to comment.