return {
label: graph_options.legend.entries[i].label,
- value: value ^ 0,
+ value: value ^ 0, // eslint-disable-line no-bitwise
min: +yExtents[0].toFixed(6),
avg: +avg.toFixed(6),
max: +yExtents[1].toFixed(6),
function($, d3pie, Humanize) {
// @ ms to date
function msToTime(seconds) {
+ /* eslint-disable no-bitwise */
years = seconds / 31536000 >> 0; // 3600*24*365
months = seconds % 31536000 / 2628000 >> 0; // 3600*24*365/12
days = seconds % 31536000 % 2628000 / 86400 >> 0; // 24*3600
hours = seconds % 31536000 % 2628000 % 86400 / 3600 >> 0;
minutes = seconds % 31536000 % 2628000 % 86400 % 3600 / 60 >> 0;
+ /* eslint-enable no-bitwise */
if (years > 0) {
if (months > 0) {
out = years + "yr " + months + "mth";