diff --git a/unireader.lua b/unireader.lua index f1eaee61d..78407f863 100644 --- a/unireader.lua +++ b/unireader.lua @@ -2122,8 +2122,10 @@ function UniReader:_drawReadingInfo() renderUtf8Text(fb.bb, 10, 15+6, face, "M: ".. math.ceil( self.cache_current_memsize / 1024 ).."/"..math.ceil( self.cache_max_memsize / 1024 ).. - " "..math.ceil( self.doc:getCacheSize() / 1024 ).."/"..math.ceil( self.cache_document_size / 1024 ).."k "..os.date("%a %d %b %Y %T").." ["..BatteryLevel().."]", - true) + " "..math.ceil( self.doc:getCacheSize() / 1024 ).."/"..math.ceil( self.cache_document_size / 1024 ).."k", true) + local txt = os.date("%a %d %b %Y %T").." ["..BatteryLevel().."]" + local w = sizeUtf8Text(0, G_width, face, txt, true).x + renderUtf8Text(fb.bb, width - w - 10, 15+6, face, txt, true) -- display reading progress on bottom of page local ypos = height - 50