summaryrefslogtreecommitdiffstats
path: root/server/lib/external-backends/backends/idoit-backend.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/external-backends/backends/idoit-backend.js')
-rw-r--r--server/lib/external-backends/backends/idoit-backend.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/server/lib/external-backends/backends/idoit-backend.js b/server/lib/external-backends/backends/idoit-backend.js
index ddbab3e..1711c9c 100644
--- a/server/lib/external-backends/backends/idoit-backend.js
+++ b/server/lib/external-backends/backends/idoit-backend.js
@@ -590,9 +590,8 @@ class IdoitBackend extends ExternalBackends {
if (client.cpus) {
let counter = 1
for (let cpu of client.cpus) {
- // Add KB and TB
- if (cpu.unit === 'MB') cpu.unit = 2
- else if (cpu.unit === 'GB') cpu.unit = 3
+ if (cpu.unit === 'MHz') cpu.unit = 2
+ else if (cpu.unit === 'GHz') cpu.unit = 3
let params = {
'object': client.id,
@@ -603,7 +602,7 @@ class IdoitBackend extends ExternalBackends {
'title': cpu.model,
'type': cpu.type,
'frequency': parseFloat(cpu.frequency),
- 'frequency_unit': 3,
+ 'frequency_unit': cpu.unit,
'cores': parseInt(cpu.cores)
},
'apikey': c.apikey
@@ -649,11 +648,12 @@ class IdoitBackend extends ExternalBackends {
'objID': client.id,
'category': 'C__CATG__MEMORY',
'data': {
- 'title': module.type,
+ 'title': module.model,
'manufacturer': module.manufacturer,
'type': module.type,
'capacity': parseFloat(module.capacity),
- 'unit': module.unit
+ 'unit': module.unit,
+ 'description': `Serialnumber: ${module.serialnumber}\nFormfactor: ${module.formfactor}\nSpeed: ${module.speed}`
},
'apikey': c.apikey
}
@@ -687,6 +687,7 @@ class IdoitBackend extends ExternalBackends {
'category_id': counter,
'title': drive.model,
'type': drive.type,
+ 'firmware': drive.firmware,
// 'manufacturer': ,
// 'model': ,
'capacity': parseFloat(drive.capacity),