From e3f1969ca472a66f91ab631367f1d2f95ce7f36a Mon Sep 17 00:00:00 2001 From: Akamaru Date: Mon, 17 Oct 2016 17:21:28 +0200 Subject: [PATCH] byte zu kilobyte --- miku/plugins/ibSearch.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miku/plugins/ibSearch.lua b/miku/plugins/ibSearch.lua index bf436ba..e5ba54b 100644 --- a/miku/plugins/ibSearch.lua +++ b/miku/plugins/ibSearch.lua @@ -25,7 +25,7 @@ function ibSearch:get_ibSearch_sfw(tag) local i = math.random(#data) local url = 'https://im1.ibsear.ch/'..data[i].path local resolution = data[i].width..'x'..data[i].height..'px' - local size = ' '..data[i].size..'kb' + local size = ' '..math.ceil(data[i].size/1000)..'kb' local source_url = '\nhttps://ibsear.ch/images/'..data[i].id local text = resolution..size..source_url return url, text @@ -40,7 +40,7 @@ function ibSearch:get_ibSearch_nsfw(tag) local i = math.random(#data) local url = 'https://im1.ibsearch.xxx/'..data[i].path local resolution = data[i].width..'x'..data[i].height..'px' - local size = ' '..data[i].size..'kb' + local size = ' '..math.ceil(data[i].size/1000)..'kb' local source_url = '\nhttps://ibsearch.xxx/images/'..data[i].id local text = resolution..size..source_url return url, text