format seconds for snmp datatable columns

This commit is contained in:
gabryon99 2020-07-01 17:09:50 +02:00
parent 4ecb2ba33f
commit 9a0ff14c42
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,7 @@
jQuery.fn.dataTableExt.sErrMode = 'console';
jQuery.fn.dataTableExt.formatSecondsToHHMMSS = (data, type, row) => {
if (isNaN(data)) return data;
if (type == "display") return DataTableUtils.secondsToHHMMSS(data);
if (type == "display") return secondsToTime(data);
return data;
};