From fe11419e3722934f124af3ec08cf897d970b2d6f Mon Sep 17 00:00:00 2001 From: localhorst Date: Sat, 1 Jun 2024 14:37:03 +0200 Subject: [PATCH] add usb sata bridge --- src/shred.cpp | 3 +-- src/smart.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/shred.cpp b/src/shred.cpp index 158e19b..3cb9c48 100644 --- a/src/shred.cpp +++ b/src/shred.cpp @@ -90,8 +90,7 @@ int Shred::shredDrive(Drive *drive, int *ipSignalFd) tfng_prng_seedkey(ucKey); this->ulDriveByteSize = getDriveSizeInBytes(driveFileDiscr); - drive->sShredSpeed.chronoShredTimestamp = std::chrono::system_clock::now(); - ; // set inital timestamp for speed metric + drive->sShredSpeed.chronoShredTimestamp = std::chrono::system_clock::now(); // set inital timestamp for speed metric drive->sShredSpeed.ulSpeedMetricBytesWritten = 0U; // uses to calculate speed metric #ifdef LOG_LEVEL_HIGH diff --git a/src/smart.cpp b/src/smart.cpp index 6478caa..339d94f 100644 --- a/src/smart.cpp +++ b/src/smart.cpp @@ -27,7 +27,7 @@ void SMART::readSMARTData(Drive *drive) modelName.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) {