diff options
author | John Stebbins <[email protected]> | 2019-06-25 16:05:18 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-06-25 16:06:10 -0700 |
commit | 5c87d987aaaaf79e02f9e1dfe58f72b2afed0a58 (patch) | |
tree | 5091ca498d3e5bfe730b5a28e2d82c3473a61a98 /libhb/hb_json.c | |
parent | 25e1f04a63dc07e944522a10e9f9733e027cb9f5 (diff) |
hb_json: add new hb_state_t fields
Diffstat (limited to 'libhb/hb_json.c')
-rw-r--r-- | libhb/hb_json.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libhb/hb_json.c b/libhb/hb_json.c index 70fbe4284..89a4da479 100644 --- a/libhb/hb_json.c +++ b/libhb/hb_json.c @@ -77,7 +77,8 @@ hb_dict_t* hb_state_to_dict( hb_state_t * state) case HB_STATE_PAUSED: case HB_STATE_SEARCHING: dict = json_pack_ex(&error, 0, - "{s:o, s{s:o, s:o, s:o, s:o, s:o, s:o, s:o, s:o, s:o, s:o}}", + "{s:o, s{s:o, s:o, s:o, s:o, s:o, s:o," + " s:o, s:o, s:o, s:o, s:o, s:o}}", "State", hb_value_string(state_s), "Working", "Progress", hb_value_double(state->param.working.progress), @@ -86,8 +87,10 @@ hb_dict_t* hb_state_to_dict( hb_state_t * state) "PassCount", hb_value_int(state->param.working.pass_count), "Rate", hb_value_double(state->param.working.rate_cur), "RateAvg", hb_value_double(state->param.working.rate_avg), + "ETASeconds", hb_value_int(state->param.working.eta_seconds), "Hours", hb_value_int(state->param.working.hours), "Minutes", hb_value_int(state->param.working.minutes), + "Paused", hb_value_int(state->param.working.paused), "Seconds", hb_value_int(state->param.working.seconds), "SequenceID", hb_value_int(state->sequence_id)); break; |