mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-02-19 00:46:31 +00:00
Update memory speed
This commit is contained in:
@@ -466,10 +466,21 @@ export default function Hardware() {
|
|||||||
<span className="font-medium">{module.type}</span>
|
<span className="font-medium">{module.type}</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{module.speed && (
|
{(module.configured_speed || module.max_speed) && (
|
||||||
<div className="flex justify-between text-sm">
|
<div className="flex justify-between text-sm">
|
||||||
<span className="text-muted-foreground">Speed</span>
|
<span className="text-muted-foreground">Speed</span>
|
||||||
<span className="font-medium">{module.speed}</span>
|
<span className="font-medium">
|
||||||
|
{module.configured_speed && module.max_speed && module.configured_speed !== module.max_speed ? (
|
||||||
|
<span className="flex items-center gap-1.5">
|
||||||
|
<span className={module.configured_speed.replace(/[^0-9]/g, '') < module.max_speed.replace(/[^0-9]/g, '') ? "text-orange-500" : "text-blue-500"}>
|
||||||
|
{module.configured_speed}
|
||||||
|
</span>
|
||||||
|
<span className="text-xs text-muted-foreground">(max: {module.max_speed})</span>
|
||||||
|
</span>
|
||||||
|
) : (
|
||||||
|
<span>{module.configured_speed || module.max_speed}</span>
|
||||||
|
)}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{module.manufacturer && (
|
{module.manufacturer && (
|
||||||
|
|||||||
@@ -2573,7 +2573,7 @@ ${(report.sections && report.sections.length > 0) ? `
|
|||||||
<Bug className={`h-5 w-5 ${fail2banInfo.active ? "text-green-500" : "text-yellow-500"}`} />
|
<Bug className={`h-5 w-5 ${fail2banInfo.active ? "text-green-500" : "text-yellow-500"}`} />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p className="font-medium">Fail2Ban {fail2banInfo.version}</p>
|
<p className="font-medium">{fail2banInfo.version}</p>
|
||||||
<p className="text-sm text-muted-foreground">
|
<p className="text-sm text-muted-foreground">
|
||||||
{fail2banInfo.active ? "Service is running" : "Service is not running"}
|
{fail2banInfo.active ? "Service is running" : "Service is not running"}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -4258,8 +4258,10 @@ def get_hardware_info():
|
|||||||
current_module['size'] = 0 # Default to 0 if no size or explicitly 'No Module Installed'
|
current_module['size'] = 0 # Default to 0 if no size or explicitly 'No Module Installed'
|
||||||
elif line.startswith('Type:'):
|
elif line.startswith('Type:'):
|
||||||
current_module['type'] = line.split(':', 1)[1].strip()
|
current_module['type'] = line.split(':', 1)[1].strip()
|
||||||
|
elif line.startswith('Configured Memory Speed:'):
|
||||||
|
current_module['configured_speed'] = line.split(':', 1)[1].strip()
|
||||||
elif line.startswith('Speed:'):
|
elif line.startswith('Speed:'):
|
||||||
current_module['speed'] = line.split(':', 1)[1].strip()
|
current_module['max_speed'] = line.split(':', 1)[1].strip()
|
||||||
elif line.startswith('Manufacturer:'):
|
elif line.startswith('Manufacturer:'):
|
||||||
current_module['manufacturer'] = line.split(':', 1)[1].strip()
|
current_module['manufacturer'] = line.split(':', 1)[1].strip()
|
||||||
elif line.startswith('Serial Number:'):
|
elif line.startswith('Serial Number:'):
|
||||||
|
|||||||
Reference in New Issue
Block a user