Compare commits

..

No commits in common. "ca77ce4c4513db9b47d789e63863810ef198b423" and "601bed9a34fef4dd93bcad3f93cbce080d764e3b" have entirely different histories.

2 changed files with 4 additions and 10 deletions

View File

@ -3,5 +3,5 @@
Agent for my-idlers
```
export AGENT_API=<API_KEY> HOST=https://idlers.test2.sysdeploy.org/api/servers;python3 agent.py
export API_KEY=<API_KEY> HOST=https://idlers.test2.sysdeploy.org/api/servers;python3 main.py
```

View File

@ -295,14 +295,8 @@ class ServerData:
size = ram.get('Size', 'Unknown')
speed = ram.get('Speed', 'Unknown')
configured_speed = ram.get('Configured Memory Speed', 'Unknown')
try:
total_width = int(ram.get('Total Width', "0").split()[0])
except ValueError:
total_width = 0
try:
data_width = int(ram.get('Data Width', "0").split()[0])
except ValueError:
data_width = 0
ecc = 'Yes' if total_width > data_width else 'No'
serial_number = ram.get('Serial Number', 'Unknown')
ram_type = ram.get('Type', 'Unknown')