MCPcopy 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
292function formatSize(length) {
293 return length > 1000 ? Math.round(length / 1024) + ' KB' : length + ' bytes';
294}
295
296module.exports = RequestLogger;

Callers 1

getPayloadSizesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected