Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 299445 Details for
Bug 438864
timing estimates are bad
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
what I've added to git
pk-time.patch (text/plain), 1.08 KB, created by
Richard Hughes
on 2008-03-28 10:26:51 UTC
(
hide
)
Description:
what I've added to git
Filename:
MIME Type:
Creator:
Richard Hughes
Created:
2008-03-28 10:26:51 UTC
Size:
1.08 KB
patch
obsolete
>diff --git a/src/pk-backend.c b/src/pk-backend.c >index 5b5261e..8f29d27 100644 >--- a/src/pk-backend.c >+++ b/src/pk-backend.c >@@ -332,6 +332,8 @@ pk_backend_emit_progress_changed (PkBackend *backend) > gboolean > pk_backend_set_percentage (PkBackend *backend, guint percentage) > { >+ guint remaining; >+ > g_return_val_if_fail (backend != NULL, FALSE); > g_return_val_if_fail (PK_IS_BACKEND (backend), FALSE); > g_return_val_if_fail (backend->priv->locked != FALSE, FALSE); >@@ -374,8 +376,13 @@ pk_backend_set_percentage (PkBackend *backend, guint percentage) > pk_time_add_data (backend->priv->time, percentage); > > /* lets try this and print as debug */ >- backend->priv->last_remaining = pk_time_get_remaining (backend->priv->time); >- pk_debug ("this will now take ~%i seconds", backend->priv->last_remaining); >+ remaining = pk_time_get_remaining (backend->priv->time); >+ pk_debug ("this will now take ~%i seconds", remaining); >+ >+#ifdef PK_IS_DEVELOPER >+ /* Until the predicted time is more sane... */ >+ backend->priv->last_remaining = remaining; >+#endif > } > > /* emit the progress changed signal */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 438864
: 299445