mirror of
https://github.com/denoland/deno.git
synced 2025-03-09 13:49:37 -04:00
update: get remote size from remote modules store
This commit is contained in:
parent
e98e110b0a
commit
9417786309
2 changed files with 7 additions and 1 deletions
|
@ -814,7 +814,9 @@ impl<'a> DenoCompileBinaryWriter<'a> {
|
|||
log::info!(
|
||||
"{} {}\n",
|
||||
crate::colors::bold("Remote modules size:"),
|
||||
crate::util::display::human_size(remote_modules_size)
|
||||
crate::util::display::human_size(
|
||||
remote_modules_store.get_data_byte_len() as f64
|
||||
)
|
||||
);
|
||||
|
||||
let metadata = Metadata {
|
||||
|
|
|
@ -271,6 +271,10 @@ impl RemoteModulesStoreBuilder {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_data_byte_len(&self) -> u64 {
|
||||
self.data_byte_len
|
||||
}
|
||||
}
|
||||
|
||||
pub enum DenoCompileModuleSource {
|
||||
|
|
Loading…
Add table
Reference in a new issue