chore: optimized code to remove warnings

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-05-11 08:18:42 +02:00
parent 7a20ad8088
commit 997b25e659
2 changed files with 5 additions and 5 deletions

View file

@ -31,7 +31,7 @@ object Logger {
try {
println(
("[" + Class.forName(caller.className).simpleName + "." +
caller.methodName + ":" + caller.lineNumber + "] [" + dtf.format(now)).toString() + "] <" + msg + ">"
caller.methodName + ":" + caller.lineNumber + "] [" + dtf.format(now)) + "] <" + msg + ">"
)
} catch (e: ClassNotFoundException) {
e.printStackTrace()

View file

@ -23,8 +23,8 @@ import java.util.concurrent.TimeUnit
object TimeUtil {
///Convert Miliseconds to xdays xhours xmins xsecs
fun getTimeFormatedShortend(time: Long): String {
var time = time
fun getTimeFormatedShortend(timeIn: Long): String {
var time = timeIn
val days = TimeUnit.MILLISECONDS
.toDays(time)
time -= TimeUnit.DAYS.toMillis(days)
@ -55,8 +55,8 @@ object TimeUtil {
return s
}
fun getTimeFormatedRaw(time: Long): String {
var time = time
fun getTimeFormatedRaw(timeIn: Long): String {
var time = timeIn
val days = TimeUnit.MILLISECONDS
.toDays(time)
time -= TimeUnit.DAYS.toMillis(days)