12 lines
266 B
JavaScript
12 lines
266 B
JavaScript
|
var multimeter = require('multimeter');
|
||
|
var multi = multimeter(process);
|
||
|
|
||
|
multi.drop(function (bar) {
|
||
|
var iv = setInterval(function () {
|
||
|
var p = bar.percent();
|
||
|
bar.percent(p + 1);
|
||
|
|
||
|
if (p >= 100) clearInterval(iv);
|
||
|
}, 25);
|
||
|
});
|