@@ -102,13 +102,12 @@ static uint8_t corrupt_step(RaiderCorrupt* corrupt, const off_t filesize, const
102
102
fwrite (pattern , sizeof (char ), length , fp );
103
103
if (g_task_return_error_if_cancelled (corrupt -> task )) {fclose (fp );return 1 ;}
104
104
105
- double current = ((double )loop_num /32 .0 ) + (double )i /times * 1.0 /32 .0 ;
105
+ double current = ((double )loop_num /10 .0 ) + (double )i /times * 1.0 /10 .0 ;
106
106
107
107
// Only update the progress when the jump is large enough.
108
108
if (current - corrupt -> progress >= .01 )
109
109
{
110
110
corrupt -> progress = current ;
111
- printf ("%d, %f\n" , loop_num , current );
112
111
raider_file_row_set_progress_num (corrupt -> row , corrupt -> progress );
113
112
g_main_context_invoke (NULL , raider_file_row_set_progress , corrupt -> row );
114
113
@@ -124,19 +123,8 @@ uint8_t corrupt_file(RaiderCorrupt* corrupt)
124
123
const char * steps [] = {"\x77\x77\x77" , "\x76\x76\x76" ,
125
124
"\x33\x33\x33" , "\x35\x35\x35" ,
126
125
"\x55\x55\x55" , "\xAA\xAA\xAA" ,
127
- "\x92\x49\x24" , "\x49\x24\x92" ,
128
- "\x55\x55\x55" , "\x20\x02\x03" ,
129
- "\x11\x11\x11" , "\x01\x01\x01" ,
130
- "\x22\x22\x22" , "\x33\x33\x33" ,
131
126
"\x44\x44\x44" , "\x55\x55\x55" ,
132
- "\x66\x66\x66" , "\x77\x77\x77" ,
133
- "\x88\x88\x88" , "\x99\x99\x99" ,
134
- "\xAA\xAA\xAA" , "\xBB\xBB\xBB" ,
135
- "\xCC\xCC\xCC" , "\xDD\xDD\xDD" ,
136
- "\xEE\xEE\xEE" , "\xFF\xFF\xFF" ,
137
- "\x92\x49\x24" , "\x49\x24\x92" ,
138
- "\x24\x92\x49" , "\x6D\xB6\xDB" ,
139
- "\xB6\xDB\x6D" , "\xDB\x6D\xB6" };
127
+ "\x66\x66\x66" , "\x77\x77\x77" };
140
128
141
129
int steps_num = sizeof (steps ) / sizeof (steps [0 ]);
142
130
uint8_t ret = 0 ;
0 commit comments