Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/cassandra-nodejs-driver
/ formatSize
Function
formatSize
lib/tracker/request-logger.js:292–294 ·
view source on GitHub ↗
(length)
Source
from the content-addressed store, hash-verified
290
}
291
292
function
formatSize(length) {
293
return
length > 1000 ? Math.round(length / 1024) +
' KB'
: length +
' bytes'
;
294
}
295
296
module.exports = RequestLogger;
Callers
1
getPayloadSizes
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected