Skip to content

Commit

Permalink
patch: show kb size in refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 6, 2022
1 parent 465b707 commit a589e0d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli/src/devtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ export async function devtools(options: DevToolsOptions & CmdOptions) {
const sendDeviceScript = bytecodeFile
? () => {
const bytecode = fs.readFileSync(bytecodeFile)
debug(`refresh bytecode...`)
debug(
`refresh bytecode ${Math.round(
(bytecode.length || 0) / 1000
)}kb...`
)
const msg = JSON.stringify({
type: "bytecode",
channel: "devicescript",
Expand Down

0 comments on commit a589e0d

Please sign in to comment.