Fix format buf in dsh.
[doldaconnect.git] / clients / gui-shell / dsh.c
index e5310cd..332e0df 100644 (file)
@@ -229,11 +229,11 @@ void updatetooltip(void)
     }
     buf = NULL;
     bufsize = bufdata = 0;
-    bprintf(buf, "Transfers: %i", t);
+    bprintf(buf, "%s: %i", _("Transfers"), t);
     if(t > 0)
        bprintf(buf, " (%i/%i)", i, a);
     if(bt > 0)
-       bprintf(buf, ", %.1f%%", (double)bc / (double)bt);
+       bprintf(buf, ", %.1f%%", ((double)bc / (double)bt) * 100.0);
     if(st != -1)
        bprintf(buf, ", %s/s", bytes2si(st));
     addtobuf(buf, 0);