diff --git a/client/client_types.cpp b/client/client_types.cpp index 229d226e43..d8dbbc68fa 100644 --- a/client/client_types.cpp +++ b/client/client_types.cpp @@ -914,9 +914,9 @@ int FILE_INFO::write_gui(MIOFILE& out) { pers_file_xfer->write(out); FILE_XFER_BACKOFF& fxb = project->file_xfer_backoff(pers_file_xfer->is_upload); - if (fxb->next_xfer_time > gstate.now) { + if (fxb.next_xfer_time > gstate.now) { out.printf(" %f\n", - fxb->next_xfer_time - gstate.now + fxb.next_xfer_time - gstate.now ); } } diff --git a/clientgui/ViewTransfers.cpp b/clientgui/ViewTransfers.cpp index 197a71c118..c22dcd655d 100644 --- a/clientgui/ViewTransfers.cpp +++ b/clientgui/ViewTransfers.cpp @@ -765,7 +765,7 @@ void CViewTransfers::GetDocStatus(wxInt32 item, wxString& strBuffer) const { } if (transfer->project_backoff) { wxString x; - FormatTime(project->upload_backoff, transfer->project_backoff); + FormatTime(transfer->project_backoff, x); strBuffer += _(" (project backoff: ") + x + _(")"); } }