mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-17 21:55:44 +01:00
opt.
This commit is contained in:
@@ -37,8 +37,8 @@ class DiskIO extends TimeSeq<DiskIOPiece> {
|
||||
final sectorsRead = now.sectorsRead - pre.sectorsRead;
|
||||
final sectorsWrite = now.sectorsWrite - pre.sectorsWrite;
|
||||
final time = now.time - pre.time;
|
||||
final read = (sectorsRead / time * 512);
|
||||
final write = (sectorsWrite / time * 512);
|
||||
final read = sectorsRead / time * 512;
|
||||
final write = sectorsWrite / time * 512;
|
||||
return (read, write);
|
||||
}
|
||||
|
||||
|
||||
@@ -77,19 +77,19 @@ class SftpReqStatus {
|
||||
void onNotify(dynamic event) {
|
||||
var shouldDispose = false;
|
||||
switch (event) {
|
||||
case SftpWorkerStatus val:
|
||||
case final SftpWorkerStatus val:
|
||||
status = val;
|
||||
if (status == SftpWorkerStatus.finished) {
|
||||
dispose();
|
||||
}
|
||||
break;
|
||||
case double val:
|
||||
case final double val:
|
||||
progress = val;
|
||||
break;
|
||||
case int val:
|
||||
case final int val:
|
||||
size = val;
|
||||
break;
|
||||
case Duration d:
|
||||
case final Duration d:
|
||||
spentTime = d;
|
||||
break;
|
||||
default:
|
||||
|
||||
@@ -56,7 +56,7 @@ Future<void> isolateMessageHandler(
|
||||
SendErrorFunction sendError,
|
||||
) async {
|
||||
switch (data) {
|
||||
case SftpReq val:
|
||||
case final SftpReq val:
|
||||
switch (val.type) {
|
||||
case SftpReqType.download:
|
||||
await _download(data, mainSendPort, sendError);
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 682;
|
||||
static const int build = 683;
|
||||
static const String engine = "3.16.4";
|
||||
static const String buildAt = "2023-12-19 15:18:22";
|
||||
static const int modifications = 10;
|
||||
static const String buildAt = "2023-12-19 15:25:07";
|
||||
static const int modifications = 1;
|
||||
static const int script = 32;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user