Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2acd8a2e authored by Tianjie Xu's avatar Tianjie Xu Committed by Gerrit Code Review
Browse files

Merge "Fix print error of numbers of blocks"

parents 9b2fe7e0 ebe39a09
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -613,12 +613,15 @@ class BlockImageDiff(object):
          def_cmd = stashes[idx][1]
          assert (idx, sr) in def_cmd.stash_before
          def_cmd.stash_before.remove((idx, sr))
          new_blocks += sr.size()

        # Add up blocks that violates space limit and print total number to
        # screen later.
        new_blocks += cmd.tgt_ranges.size()
        cmd.ConvertToNew()

    print("  Total %d blocks are packed as new blocks due to insufficient "
          "cache size." % (new_blocks,))
    num_of_bytes = new_blocks * self.tgt.blocksize
    print("  Total %d blocks (%d bytes) are packed as new blocks due to "
          "insufficient cache size." % (new_blocks, num_of_bytes))

  def ComputePatches(self, prefix):
    print("Reticulating splines...")