fixed_show_received_size
This commit is contained in:
parent
8bad431a6d
commit
afde42ea58
1 changed files with 5 additions and 1 deletions
|
@ -47,7 +47,11 @@ impl FileInfo
|
|||
{
|
||||
match File::write_all(file_descriptor, &mut self.bytes)
|
||||
{
|
||||
Ok(_) => println!("Done: Write -> {} bytes", &mut self.size),
|
||||
Ok(_) =>
|
||||
{
|
||||
self.size = self.bytes.len();
|
||||
println!("Done: Write -> {} bytes", &mut self.size);
|
||||
}
|
||||
Err(err_val) => println!("Error: Write {}", err_val),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue