about-system 0.0.16 → 0.0.17
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.
- package/package.json +1 -1
- package/src/about-system.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "about-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "A Node.js script to display key system information with emojis. Cross-platform support for Windows, macOS, and Linux with customizable output and caching.",
|
|
5
5
|
"main": "src/about-system.js",
|
|
6
6
|
"bin": {
|
package/src/about-system.js
CHANGED
|
@@ -1058,7 +1058,7 @@ const infoFunctions = {
|
|
|
1058
1058
|
if (mountPoints.length > 0) {
|
|
1059
1059
|
const color = colors[settings.colors.mount_points] || colors.gray;
|
|
1060
1060
|
const emoji = settings.display.show_emojis ? '📂 ' : '';
|
|
1061
|
-
const result = `${color}${emoji}${mountPoints.slice(0, 3).join(' ')}`;
|
|
1061
|
+
const result = `${color}${emoji} ${mountPoints.slice(0, 3).join(' ')}`;
|
|
1062
1062
|
setCachedValue(this.cache, 'mount_points', result);
|
|
1063
1063
|
return result;
|
|
1064
1064
|
}
|
|
@@ -1093,7 +1093,7 @@ const infoFunctions = {
|
|
|
1093
1093
|
if (serviceCount > 0) {
|
|
1094
1094
|
const color = colors[settings.colors.services_running] || colors.green;
|
|
1095
1095
|
const emoji = settings.display.show_emojis ? '⚙️ ' : '';
|
|
1096
|
-
const result = `${color}${emoji}
|
|
1096
|
+
const result = `${color}${emoji} ${serviceCount} services`;
|
|
1097
1097
|
setCachedValue(this.cache, 'services_running', result);
|
|
1098
1098
|
return result;
|
|
1099
1099
|
}
|
|
@@ -1128,7 +1128,7 @@ const infoFunctions = {
|
|
|
1128
1128
|
if (tempC > 0 && tempC < 150) { // Reasonable temperature range
|
|
1129
1129
|
const color = tempC > 70 ? colors.red : tempC > 50 ? colors.yellow : colors.green;
|
|
1130
1130
|
const emoji = settings.display.show_emojis ? '🌡️ ' : '';
|
|
1131
|
-
const result = `${color}${emoji}${tempC}°C`;
|
|
1131
|
+
const result = `${color}${emoji} ${tempC}°C`;
|
|
1132
1132
|
setCachedValue(this.cache, 'temperature', result);
|
|
1133
1133
|
return result;
|
|
1134
1134
|
}
|