Commit 7c631fe5fac7e3282e24c9c72d4df6d29b361a45

Authored by Thiago Rocha
1 parent 94b0645a
Exists in master

Adicionada coleta do Serial number da BIOS/Motherboard.

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
src/cacic_hardware.cpp
... ... @@ -399,6 +399,8 @@ void cacic_hardware::coletaLinuxMotherboard(QJsonObject &hardware)
399 399 motherboard["version"] = QJsonValue::fromVariant( QString(line.split(":")[1].mid(1)) );
400 400 } else if(line.contains("Asset Tag:")){
401 401 motherboard["asset_tag"] = QJsonValue::fromVariant( QString(line.split(":")[1].mid(1)) );
  402 + } else if(line.contains("Serial Number:")){
  403 + motherboard["serial_number"] = QJsonValue::fromVariant( QString(line.split(":")[1].mid(1)) );
402 404 }
403 405 }
404 406  
... ...