mirror of
https://github.com/Retropex/custom-ocean.xyz-dashboard.git
synced 2025-05-12 19:20:45 +02:00
Update worker_service.py
This commit is contained in:
parent
f89b7b2825
commit
33a96600a4
@ -465,9 +465,9 @@ class WorkerService:
|
||||
# Worker model types for simulation
|
||||
models = [
|
||||
{"type": "ASIC", "model": "Bitmain Antminer S19 Pro", "max_hashrate": 110, "power": 3250},
|
||||
{"type": "ASIC", "model": "MicroBT Whatsminer M50S", "max_hashrate": 130, "power": 3276},
|
||||
{"type": "ASIC", "model": "Bitmain Antminer T21", "max_hashrate": 130, "power": 3276},
|
||||
{"type": "ASIC", "model": "Bitmain Antminer S19j Pro", "max_hashrate": 104, "power": 3150},
|
||||
{"type": "FPGA", "model": "BitAxe FPGA Miner", "max_hashrate": 3.2, "power": 35}
|
||||
{"type": "FPGA", "model": "Bitaxe Gamma 601", "max_hashrate": 3.2, "power": 35}
|
||||
]
|
||||
|
||||
# Calculate hashrate distribution - majority of hashrate to online workers
|
||||
@ -621,7 +621,7 @@ class WorkerService:
|
||||
]
|
||||
|
||||
# Worker names for simulation - only used if no real worker names are provided
|
||||
prefixes = ["Antminer", "Whatsminer", "Miner", "Rig", "Node", "Worker", "BitAxe", "BTC"]
|
||||
prefixes = ["Antminer", "Miner", "Rig", "Node", "Worker", "BitAxe", "BTC"]
|
||||
|
||||
# Calculate hashrate distribution - majority of hashrate to online workers
|
||||
online_count = max(1, int(num_workers * 0.8)) # At least 1 online worker
|
||||
|
Loading…
Reference in New Issue
Block a user