Skip to content

Commit

Permalink
v8.3.1: sockdrive cache issues fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
caiiiycuk committed Oct 22, 2024
1 parent 449711c commit db37b56
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 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.3.0",
"version": "8.3.1",
"description": "Emulators (dos) with standartized API",
"main": "dist/emulators.js",
"types": "dist/types/emulators.d.ts",
Expand Down
12 changes: 6 additions & 6 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
// gulpfile.ts/wasm.ts --> generateBuildInfo

export const Build = {
version: "8.2.2 (f68ad59ec707afe7aad49388c3368269)",
buildSeed: 1729090845648,
version: "8.3.0 (c9c7a9bcadf2953a525750e3b8d347e0)",
buildSeed: 1729587869354,
"wdosbox-x.wasm": {
"size": 6293112,
"size": 6316939,
"gzSize": 0
},
"wdosbox-x.js": {
"size": 225415,
"size": 225479,
"gzSize": 0
},
"wdosbox.wasm": {
"size": 1478555,
"size": 1502217,
"gzSize": 0
},
"wdosbox.js": {
"size": 102955,
"size": 103037,
"gzSize": 0
},
"wlibzip.wasm": {
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 @@ -231,6 +231,7 @@ EM_JS(void, ws_init_runtime, (const char* sessionId, const char* sockdriveImpl),
driveCacheHit: 0,
driveCacheMiss: 0,
driveCacheUsed: 0,
driveBufferedAmount: 0,
driveIo: [],
};

Expand All @@ -241,6 +242,7 @@ EM_JS(void, ws_init_runtime, (const char* sessionId, const char* sockdriveImpl),
stats.driveCacheHit = Module.sockdrive.stats.cacheHit;
stats.driveCacheMiss = Module.sockdrive.stats.cacheMiss;
stats.driveCacheUsed = Module.sockdrive.stats.cacheUsed;
stats.driveBufferedAmount = Module.sockdrive.bufferedAmount();
stats.driveIo = Module.sockdrive.stats.io;
}

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,
driveBufferedAmount: number,
driveIo: { read: number, write: number }[];
}

Expand Down

0 comments on commit db37b56

Please sign in to comment.