Changeset 99


Ignore:
Timestamp:
Feb 8, 2006, 2:15:59 PM (15 years ago)
Author:
joshe
Message:

Whoops, use download and upload *totals* instead of *rate* to calculate ratio.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r97 r99  
    683683  char *dlstr, *ulstr, *str, *marked;
    684684  gfloat prog, dl, ul;
     685  guint64 down, up;
    685686
    686687  /* XXX should I worry about gtk_tree_model_get failing? */
    687   gtk_tree_model_get(model, iter, MC_PROG, &prog,
    688                      MC_DRATE, &dl, MC_URATE, &ul, -1);
     688  gtk_tree_model_get(model, iter, MC_PROG, &prog, MC_DRATE, &dl, MC_URATE, &ul,
     689                     MC_DOWN, &down, MC_UP, &up, -1);
    689690  if(0.0 > prog)
    690691    prog = 0.0;
     
    694695  ulstr = readablesize(ul * 1024.0, 2);
    695696  if(1.0 == prog) {
    696     dlstr = ratiostr(dl, ul);
     697    dlstr = ratiostr(down, up);
    697698    str = g_strdup_printf(_("Ratio: %s\nUL: %s/s"), dlstr, ulstr);
    698699  } else {
Note: See TracChangeset for help on using the changeset viewer.