PtokaX > Feature Proposals

iShareSize

(1/2) > >>

6Marilyn6Manson6:
user.iShareSize = return iShareSize in byte.
Is it possible change iShareSize in other? For example: iShareSize change in: iShareSizeBYTE - iShareSizeKBYTE - iShareSizeMBYTE - iShareSizeGBYTE - iShareSizeTBYTE. Thanks :P

PPK:
No is not possible  :o

6Marilyn6Manson6:

--- Quote from: PPK on 21 May, 2006, 22:50:25 ---No is not possible? :o

--- End quote ---

Why PPK? Explain to me please :)

GeceBekcisi:
6Marilyn6Manson6 why don't you simply use a code like the one below?

--- Code: ---BYTEtoSHARE = function(iBytes)
if iBytes then
if iBytes > 1024^5 then
return string.format( "%.2f",iBytes/1024^5).." PiB"
elseif (1024^5 > iBytes) and (iBytes > 1024^4) then
return string.format( "%.2f",iBytes/1024^4).." TiB"
elseif (1024^4 > iBytes) and (iBytes > 1024^3) then
return string.format( "%.2f",iBytes/1024^3).." GiB"
elseif (1024^3 > iBytes) and (iBytes > 1024^2) then
return string.format( "%.2f",iBytes/1024^2).." MiB"
elseif (1024^2 > iBytes) and (iBytes > 1024) then
return string.format( "%.2f",iBytes/1024).." KiB"
elseif (1024 > iBytes) then
return (iBytes).." B"
end
else
return "0 B"
end
end
--- End code ---

PPK:
Yes as say GeceBekcisi, why you dont use script... because is not possible want from PtokaX to create all share types on any user object creating ::)

Navigation

[0] Message Index

[#] Next page

Go to full version