|
|
@ -1092,13 +1092,9 @@ const TorrentsTable = new Class({ |
|
|
|
// ratio
|
|
|
|
// ratio
|
|
|
|
this.columns['ratio'].updateTd = function(td, row) { |
|
|
|
this.columns['ratio'].updateTd = function(td, row) { |
|
|
|
const ratio = this.getRowValue(row); |
|
|
|
const ratio = this.getRowValue(row); |
|
|
|
let html = null; |
|
|
|
const string = (ratio === -1) ? '∞' : toFixedPointString(ratio, 2); |
|
|
|
if (ratio == -1) |
|
|
|
td.set('html', string); |
|
|
|
html = '∞'; |
|
|
|
td.set('title', string); |
|
|
|
else |
|
|
|
|
|
|
|
html = (Math.floor(100 * ratio) / 100).toFixed(2); //Don't round up
|
|
|
|
|
|
|
|
td.set('html', html); |
|
|
|
|
|
|
|
td.set('title', html); |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// tags
|
|
|
|
// tags
|
|
|
@ -1184,7 +1180,7 @@ const TorrentsTable = new Class({ |
|
|
|
|
|
|
|
|
|
|
|
// availability
|
|
|
|
// availability
|
|
|
|
this.columns['availability'].updateTd = function(td, row) { |
|
|
|
this.columns['availability'].updateTd = function(td, row) { |
|
|
|
const value = (Math.floor(1000 * this.getRowValue(row)) / 1000).toFixed(3); // Don't round up
|
|
|
|
const value = toFixedPointString(this.getRowValue(row), 3); |
|
|
|
td.set('html', value); |
|
|
|
td.set('html', value); |
|
|
|
td.set('title', value); |
|
|
|
td.set('title', value); |
|
|
|
}; |
|
|
|
}; |
|
|
|