Skip to content

Commit

Permalink
v8.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
caiiiycuk committed Aug 22, 2024
1 parent ecfc7dd commit 6403aec
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion native/sockdrive
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "emulators",
"version": "8.1.5",
"version": "8.1.6",
"description": "Emulators (dos) with standartized API",
"main": "dist/emulators.js",
"types": "dist/types/emulators.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/dos/dosbox/cpp/worker-protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ EM_JS(void, ws_init_runtime, (const char* sessionId), {
driveCacheHit: 0,
driveCacheMiss: 0,
driveCacheUsed: 0,
driveIo: [],
};

if (Module.sockdrive && Module.sockdrive.stats) {
Expand All @@ -225,6 +226,7 @@ EM_JS(void, ws_init_runtime, (const char* sessionId), {
stats.driveCacheHit = Module.sockdrive.stats.cacheHit;
stats.driveCacheMiss = Module.sockdrive.stats.cacheMiss;
stats.driveCacheUsed = Module.sockdrive.stats.cacheUsed;
stats.driveIo = Module.sockdrive.stats.io;
}

sendMessage("ws-asyncify-stats", stats);
Expand Down
1 change: 1 addition & 0 deletions src/protocol/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export interface AsyncifyStats {
driveCacheHit: number,
driveCacheMiss: number,
driveCacheUsed: number,
driveIo: { read: number, write: number }[];
}

export interface FsNode {
Expand Down

0 comments on commit 6403aec

Please sign in to comment.