add usb sata bridge
This commit is contained in:
parent
76c728c241
commit
fe11419e37
@ -90,8 +90,7 @@ int Shred::shredDrive(Drive *drive, int *ipSignalFd)
|
|||||||
tfng_prng_seedkey(ucKey);
|
tfng_prng_seedkey(ucKey);
|
||||||
|
|
||||||
this->ulDriveByteSize = getDriveSizeInBytes(driveFileDiscr);
|
this->ulDriveByteSize = getDriveSizeInBytes(driveFileDiscr);
|
||||||
drive->sShredSpeed.chronoShredTimestamp = std::chrono::system_clock::now();
|
drive->sShredSpeed.chronoShredTimestamp = std::chrono::system_clock::now(); // set inital timestamp for speed metric
|
||||||
; // set inital timestamp for speed metric
|
|
||||||
drive->sShredSpeed.ulSpeedMetricBytesWritten = 0U; // uses to calculate speed metric
|
drive->sShredSpeed.ulSpeedMetricBytesWritten = 0U; // uses to calculate speed metric
|
||||||
|
|
||||||
#ifdef LOG_LEVEL_HIGH
|
#ifdef LOG_LEVEL_HIGH
|
||||||
|
@ -27,7 +27,7 @@ void SMART::readSMARTData(Drive *drive)
|
|||||||
modelName.clear();
|
modelName.clear();
|
||||||
serial.clear();
|
serial.clear();
|
||||||
|
|
||||||
string sSmartctlCommands[] = {" --json -a ", " --json -d sntjmicron -a ", " --json -d sntasmedia -a ", " --json -d sntrealtek -a "};
|
string sSmartctlCommands[] = {" --json -a ", " --json -d sntjmicron -a ", " --json -d sntasmedia -a ", " --json -d sntrealtek -a ", " --json -d sat -a "};
|
||||||
|
|
||||||
for (string sSmartctlCommand : sSmartctlCommands)
|
for (string sSmartctlCommand : sSmartctlCommands)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user