Skip to content

Commit

Permalink
format bytes total
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Jan 28, 2025
1 parent 94ab229 commit 3d3e0d3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/app/browser/window/tab/item/client/driver/gemini.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use super::{Feature, Subject};
use crate::tool::format_bytes;
use ggemini::client::{
connection::response::{data::Text, meta::Status},
Client, Request,
Expand Down Expand Up @@ -103,7 +104,6 @@ impl Gemini {
)
// init data to send
/* @TODO
use crate::tool::format_bytes;
use plurify::ns as plural;
const CHUNK: usize = 0x400;
Expand Down Expand Up @@ -238,7 +238,7 @@ fn handle(
move |_, total| {
action.update.activate(&format!(
"Received {}...",
crate::tool::format_bytes(total)
format_bytes(total)
))
}
},
Expand All @@ -248,8 +248,9 @@ fn handle(
move |result| match result {
Ok((_, total)) => {
action.complete.activate(&format!(
"Saved to {} ({total} bytes total)",
file.parse_name()
"Saved to {} ({} total)",
file.parse_name(),
format_bytes(total)
))
}
Err(e) => {
Expand Down

0 comments on commit 3d3e0d3

Please sign in to comment.