add damaged audio warning
parent
3cfa84e317
commit
cf6799eff2
|
@ -587,6 +587,7 @@
|
|||
"Attach Video Clip": "Attach Video Clip",
|
||||
"Error While Decoding": "Error While Decoding",
|
||||
"ErrorWhileDecodingText": "Your hardware may have an unstable connection to the network. Check your network connections.",
|
||||
"ErrorWhileDecodingTextAudio": "Your camera is providing broken data. Try disabling the Audio in the camera's internal settings.",
|
||||
"Discord": "Discord",
|
||||
"Discord Alert on Trigger": "Discord Alert on Trigger",
|
||||
"Allow Next Email": "Allow Next Email <small>in Minutes</small>",
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// This file's contents were referenced from https://gist.github.com/sidwarkd/9578213
|
||||
const fs = require('fs');
|
||||
const calculateCPUPercentage = function(oldVals, newVals){
|
||||
var totalDiff = newVals.total - oldVals.total;
|
||||
|
@ -29,7 +30,6 @@ exports.getCpuUsageOnLinux = () => {
|
|||
var lines = data.split('\n');
|
||||
var cpuTimes = lines[0].match(/[0-9]+/gi);
|
||||
currentCPUInfo.total = 0;
|
||||
// We'll count both idle and iowait as idle time
|
||||
currentCPUInfo.idle = parseInt(cpuTimes[3]) + parseInt(cpuTimes[4]);
|
||||
for (var i = 0; i < cpuTimes.length; i++){
|
||||
currentCPUInfo.total += parseInt(cpuTimes[i]);
|
||||
|
|
|
@ -1011,6 +1011,9 @@ module.exports = function(s,config,lang){
|
|||
s.checkUserPurgeLock(e.ke)
|
||||
s.purgeDiskForGroup(e.ke)
|
||||
break;
|
||||
case checkLog(d,'error parsing AU headers'):
|
||||
s.userLog(e,{type:lang['Error While Decoding'],msg:lang.ErrorWhileDecodingTextAudio});
|
||||
break;
|
||||
case checkLog(d,'error while decoding'):
|
||||
s.userLog(e,{type:lang['Error While Decoding'],msg:lang.ErrorWhileDecodingText});
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue