Skip to content

Commit

Permalink
fix: Wrong response time
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed May 3, 2021
1 parent 7137a8f commit a698474
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ fun LogItem(log: PiHoleLog) {
icon,
tint = tint,
contentDescription = log.answerType.toString(),
modifier = Modifier.padding(top = 11.dp).size(35.dp)
modifier = Modifier
.padding(top = 11.dp)
.size(35.dp)
)
},
overlineText = { Text(log.answerType.toString()) },
Expand All @@ -52,7 +54,7 @@ fun LogItem(log: PiHoleLog) {
trailing = {
Column {
Text(dateFormat.format(log.timestamp * 1000L))
Text("${log.responseTime} ms")
Text("%.1f ms".format(log.responseTime * 0.1))
}
})
}
Expand Down

0 comments on commit a698474

Please sign in to comment.