mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 13:42:14 +00:00
Typos found by codespell
This commit is contained in:
@@ -72,7 +72,7 @@ typedef struct nwipe_speedring_t_
|
||||
#define NWIPE_DEVICE_LABEL_LENGTH 200
|
||||
#define NWIPE_DEVICE_SIZE_TXT_LENGTH 7
|
||||
|
||||
// Arbitary length, so far most paths don't exceed about 25 characters
|
||||
// Arbitrary length, so far most paths don't exceed about 25 characters
|
||||
#define MAX_HWMON_PATH_LENGTH 100
|
||||
|
||||
typedef struct nwipe_context_t_
|
||||
@@ -136,7 +136,7 @@ typedef struct nwipe_context_t_
|
||||
int temp1_lcrit; // Critical low drive temperature, 1000000=unitialised, millidegree celsius.
|
||||
int temp1_lowest; // Historically lowest temperature, 1000000=unitialised, millidegree celsius.
|
||||
int temp1_max; // Maximum allowed temperature, 1000000=unitialised, millidegree celsius.
|
||||
int temp1_min; // Miniumum allowed temperature, 1000000=unitialised, millidegree celsius.
|
||||
int temp1_min; // Minimum allowed temperature, 1000000=unitialised, millidegree celsius.
|
||||
int temp1_monitored_wipe_max;
|
||||
int temp1_monitored_wipe_min;
|
||||
int temp1_monitored_wipe_avg;
|
||||
|
||||
@@ -662,7 +662,7 @@ int nwipe_get_device_bus_type_and_serialno( char* device, nwipe_device_t* bus, c
|
||||
{
|
||||
/* Convert the label, i.e everything before the ':' to lower case, it's required to
|
||||
* convert to lower case as smartctl seems to use inconsistent case when labeling
|
||||
* for serial number, i.e mostly it produces labels "Serial Number:" but occasionaly
|
||||
* for serial number, i.e mostly it produces labels "Serial Number:" but occasionally
|
||||
* it produces a label "Serial number:" */
|
||||
|
||||
idx = 0;
|
||||
|
||||
@@ -54,7 +54,7 @@ void nwipe_update_speedring( nwipe_speedring_t* speedring, u64 speedring_done, t
|
||||
* the drive selection screen is displayed. (prior to wipe starting). */
|
||||
#define GETCH_BLOCK_MS 250 /* millisecond block time for getch() */
|
||||
|
||||
/* Note The value of 1 (100ms) is the ideal speed for screen refresh during a wipe, a value of 2 is noticably slower,
|
||||
/* Note The value of 1 (100ms) is the ideal speed for screen refresh during a wipe, a value of 2 is noticeably slower,
|
||||
* don't change unless you understand how this value affects keyboard responsiveness and speed of screen stats/spinner
|
||||
* updating */
|
||||
#define GETCH_GUI_STATS_UPDATE_MS 1 /* 1 * 100 = 1/10/sec = millisecond block time for gui stats screen updates */
|
||||
|
||||
@@ -255,7 +255,7 @@ int main( int argc, char** argv )
|
||||
/* load the drivetemp module */
|
||||
if( system( final_cmd_modprobe ) != 0 )
|
||||
{
|
||||
nwipe_log( NWIPE_LOG_WARNING, "hwmon: Unable to load module drivetemp, temperatures may be unavilable." );
|
||||
nwipe_log( NWIPE_LOG_WARNING, "hwmon: Unable to load module drivetemp, temperatures may be unavailable." );
|
||||
nwipe_log( NWIPE_LOG_WARNING, "hwmon: It's possible the drivetemp software isn't modular but built-in" );
|
||||
nwipe_log( NWIPE_LOG_WARNING, "hwmon: to the kernel, as is the case with ShredOS.x86_64 in which case" );
|
||||
nwipe_log( NWIPE_LOG_WARNING, "hwmon: the temperatures will actually be available despite this issue." );
|
||||
|
||||
@@ -242,7 +242,7 @@ void nwipe_update_temperature( nwipe_context_t* c )
|
||||
/* Convert numeric ascii to binary integer */
|
||||
*( temperature_pcontext[idx] ) = atoi( temperature );
|
||||
|
||||
/* Divide by 1000 to get degrees celcius */
|
||||
/* Divide by 1000 to get degrees celsius */
|
||||
*( temperature_pcontext[idx] ) = *( temperature_pcontext[idx] ) / 1000;
|
||||
|
||||
if( nwipe_options.verbose )
|
||||
|
||||
Reference in New Issue
Block a user