Initializing u64 value with something 'u' seem to limit it's maximum value to 0xffffffff and then stop. So this broke restore support, as you can see when the restore pointer went > 0xffffffff, also in status view. cc @neheb
This commit is contained in:
+1
-1
@@ -5537,7 +5537,7 @@ static void *thread_calc (void *p)
|
||||
u64 words_off = 0;
|
||||
u64 words_fin = 0;
|
||||
|
||||
u64 max = -1u;
|
||||
u64 max = -1llu;
|
||||
|
||||
while (max)
|
||||
{
|
||||
|
||||
+1
-1
@@ -9578,7 +9578,7 @@ void read_restore (const char *eff_restore_file, restore_data_t *rd)
|
||||
|
||||
u64 get_lowest_words_done ()
|
||||
{
|
||||
u64 words_cur = -1u;
|
||||
u64 words_cur = -1llu;
|
||||
|
||||
for (uint device_id = 0; device_id < data.devices_cnt; device_id++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user