MCPcopy Index your code
hub / github.com/node-js-libs/node.io / round

Function round

lib/node.io/process_master.js:246–248  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

244 var mb_read, mb_written, MB = 1024 * 1024, now = new Date();
245
246 var round = function (val) {
247 return Math.round(val * 1000) / 1000;
248 };
249
250 time = (now - job.start_time) / 1000;
251 mb_read = round(job.obj.getBytesRead() / MB);

Callers 1

oncompleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected