mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 22:15:41 +00:00
This patch fixes a minor display issue that occurs when a user aborts a wipe before a wipe has started. It only occurs if the user had selected one or more drives for wipe and then aborted before starting the wipe. The spurious message only occurs in a virtual terminal, i.e. /dev/tty1, /dev/tty2, /dev/console It does not occur in terminal applications such as konsole, xterm, terminator etc. The spurious message that appears in the main window, states that "/dev/sdxyz 100% complete" along with garbage values in the statistics window. The message appears for a fraction of a second before being replaced with the textual log information that correctly states that the user aborted and no wipe was started. Basically the gui status information update function tries to update the data when the wipe hasn't even started. The fix is to only update the statistics information only if a wipe has started by checking the 'global_wipe_status' value which indicates whether any wipe started. '1' indicates that a wipe has started, else '0' if no wipe has started.
18 lines
750 B
C
18 lines
750 B
C
/**
|
|
* version_string and program_name are used by siege
|
|
* and configure; author_name and email_address are
|
|
* used by configure to dynamically assign those values
|
|
* to documentation files.
|
|
*/
|
|
const char* version_string = "0.32.024";
|
|
const char* program_name = "nwipe";
|
|
const char* author_name = "Martijn van Brummelen";
|
|
const char* email_address = "git@brumit.nl";
|
|
const char* years = "2022";
|
|
const char* copyright = "Copyright Darik Horn <dajhorn-dban@vanadac.com>\n\
|
|
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.024";
|