Skip to content

Commit

Permalink
added chars count to history label
Browse files Browse the repository at this point in the history
  • Loading branch information
goldbuick committed Dec 14, 2024
1 parent a3a23d8 commit 0b996e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zss/device/vm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ async function savestate() {
const books = memoryreadbooklist()
const mainbook = memoryreadbookbysoftware(MEMORY_LABEL.MAIN)
if (books.length && ispresent(mainbook)) {
const content = await compressbooks(books)
register_flush(
vm.name(),
`${new Date().toISOString()} ${mainbook.name}`,
await compressbooks(books),
`${new Date().toISOString()} ${mainbook.name} ${content.length} chars`,
content,
)
}
}
Expand Down

0 comments on commit 0b996e1

Please sign in to comment.