mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
18 lines
446 B
JavaScript
18 lines
446 B
JavaScript
const fs = require('fs');
|
|
const content = fs.readFileSync('file_size.log', 'utf8');
|
|
const lines = content.split('\n');
|
|
let totalExcess = 0;
|
|
let count = 0;
|
|
lines.forEach(line => {
|
|
const match = line.match(/\((\d+) lines\)/);
|
|
if (match) {
|
|
const lines = parseInt(match[1], 10);
|
|
if (lines > 1000) {
|
|
totalExcess += (lines - 1000);
|
|
count++;
|
|
}
|
|
}
|
|
});
|
|
console.log('Count:', count);
|
|
console.log('Total Excess:', totalExcess);
|