Merge pull request #380 from PartialVolume/Update_NVME_temperature_code

Update nvme temperatures.
This commit is contained in:
PartialVolume
2021-11-17 19:30:39 +00:00
committed by GitHub
2 changed files with 5 additions and 4 deletions

View File

@@ -105,12 +105,13 @@ int nwipe_init_temperature( nwipe_context_t* c )
{
/* If not then we search the parent directory ../device/
* for the device name rather than ../device/block/ */
strcat( dirpath_tmp2, "/device" );
strcat( dirpath_tmp2, "/device/nvme/nvme0" );
strcpy( dirpath_tmp, dirpath_tmp2 );
if( ( dir2 = opendir( dirpath_tmp ) ) == NULL )
{
nwipe_log( NWIPE_LOG_ERROR, "hwmon: Can't open /sys/class/hwmon/hwmonX/ or ../hwmonX/block" );
nwipe_log( NWIPE_LOG_ERROR,
"hwmon: Can't open /sys/class/hwmon/hwmonX/block or ../hwmonX/device/nvme/nvme0" );
continue;
}
}

View File

@@ -4,7 +4,7 @@
* used by configure to dynamically assign those values
* to documentation files.
*/
const char* version_string = "0.32.011";
const char* version_string = "0.32.012";
const char* program_name = "nwipe";
const char* author_name = "Martijn van Brummelen";
const char* email_address = "git@brumit.nl";
@@ -14,4 +14,4 @@ Modifications to original dwipe Copyright Andy Beverley <andy@andybev.com>\n\
This is free software; see the source for copying conditions.\n\
There is NO warranty; not even for MERCHANTABILITY or FITNESS\n\
FOR A PARTICULAR PURPOSE.\n";
const char* banner = "nwipe 0.32.011";
const char* banner = "nwipe 0.32.012";