Round server time sync

This commit is contained in:
Tanay Neotia
2022-12-06 12:47:18 -05:00
parent 72bd872416
commit be045967ee

View File

@ -177,7 +177,7 @@ class _ServerManagementPanelState extends CustomState<ServerManagementPanel, voi
if (controller.timeSync.value != null)
const TextSpan(text: "Server Time Sync: "),
if (controller.timeSync.value != null)
TextSpan(text: "${controller.timeSync.value}s", style: TextStyle(color: getIndicatorColor(controller.timeSync.value! < 1
TextSpan(text: "${controller.timeSync.value!.toStringAsFixed(3)}s", style: TextStyle(color: getIndicatorColor(controller.timeSync.value! < 1
? SocketState.connected
: SocketState.disconnected))),
const TextSpan(text: "\n\n"),