Skip to content

Commit

Permalink
Merge pull request #13 from vivid-planet/nsams-patch-1
Browse files Browse the repository at this point in the history
cacheSizeLimitHit is given in megabytes
  • Loading branch information
dkarnutsch authored Sep 13, 2023
2 parents 97ab768 + 92289e8 commit 696cfba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ program
.option("--cacheDir <dir>", "directory cache files will be written into", "cache")
.action((origin: string, { port, cacheDir, cacheSizeLimitHint }: { port: string; cacheDir: string; cacheSizeLimitHint: string }) => {
// Ensure the cache directory exists
const cache = new FilesystemCacheBackend(cacheDir, parseInt(cacheSizeLimitHint) /* * 1024 * 1024*/);
const cache = new FilesystemCacheBackend(cacheDir, parseInt(cacheSizeLimitHint) * 1024 * 1024);

console.log(`Starting proxy Server`);
http.createServer(function (req, res) {
Expand Down

0 comments on commit 696cfba

Please sign in to comment.