Fix #1529 - webUI should show timeshift periods as minutes.
This commit is contained in:
parent
d08c0b665a
commit
a2fab105a1
3 changed files with 9 additions and 7 deletions
|
@ -30,7 +30,7 @@
|
|||
your storage media runs out of space (WARNING: this could be dangerous!).
|
||||
|
||||
<!--
|
||||
<dt>Max. Size (MB)
|
||||
<dt>Max. Size (MegaBytes)
|
||||
<dd>Specifies the maximum combined size of all timeshift buffers. If you
|
||||
specify an unlimited period its highly recommended you specifying a value
|
||||
here.
|
||||
|
|
|
@ -2072,7 +2072,7 @@ extjs_timeshift(http_connection_t *hc, const char *remain, void *opaque)
|
|||
if (timeshift_path)
|
||||
htsmsg_add_str(m, "timeshift_path", timeshift_path);
|
||||
htsmsg_add_u32(m, "timeshift_unlimited_period", timeshift_unlimited_period);
|
||||
htsmsg_add_u32(m, "timeshift_max_period", timeshift_max_period);
|
||||
htsmsg_add_u32(m, "timeshift_max_period", timeshift_max_period / 60);
|
||||
htsmsg_add_u32(m, "timeshift_unlimited_size", timeshift_unlimited_size);
|
||||
htsmsg_add_u32(m, "timeshift_max_size", timeshift_max_size / 1048576);
|
||||
pthread_mutex_unlock(&global_lock);
|
||||
|
@ -2090,7 +2090,7 @@ extjs_timeshift(http_connection_t *hc, const char *remain, void *opaque)
|
|||
}
|
||||
timeshift_unlimited_period = http_arg_get(&hc->hc_req_args, "timeshift_unlimited_period") ? 1 : 0;
|
||||
if ((str = http_arg_get(&hc->hc_req_args, "timeshift_max_period")))
|
||||
timeshift_max_period = (uint32_t)atol(str);
|
||||
timeshift_max_period = (uint32_t)atol(str) * 60;
|
||||
timeshift_unlimited_size = http_arg_get(&hc->hc_req_args, "timeshift_unlimited_size") ? 1 : 0;
|
||||
if ((str = http_arg_get(&hc->hc_req_args, "timeshift_max_size")))
|
||||
timeshift_max_size = atol(str) * 1048576LL;
|
||||
|
|
|
@ -47,7 +47,7 @@ tvheadend.timeshift = function() {
|
|||
});
|
||||
|
||||
var timeshiftUnlPeriod = new Ext.form.Checkbox({
|
||||
fieldLabel: ' Unlimited',
|
||||
fieldLabel: ' (unlimited)',
|
||||
name: 'timeshift_unlimited_period',
|
||||
Width: 300
|
||||
});
|
||||
|
@ -56,13 +56,15 @@ tvheadend.timeshift = function() {
|
|||
fieldLabel: 'Max. Size (MB)',
|
||||
name: 'timeshift_max_size',
|
||||
allowBlank: false,
|
||||
width: 300
|
||||
width: 300,
|
||||
hidden : true
|
||||
});
|
||||
|
||||
var timeshiftUnlSize = new Ext.form.Checkbox({
|
||||
fieldLabel: ' Unlimited',
|
||||
fieldLabel: ' (unlimited)',
|
||||
name: 'timeshift_unlimited_size',
|
||||
Width: 300
|
||||
Width: 300,
|
||||
hidden : true
|
||||
});
|
||||
|
||||
/* ****************************************************************
|
||||
|
|
Loading…
Add table
Reference in a new issue