Skip to content

Instantly share code, notes, and snippets.

@LawnGnome
Created April 10, 2012 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LawnGnome/f8e00bb9066e8fb286e8 to your computer and use it in GitHub Desktop.
Save LawnGnome/f8e00bb9066e8fb286e8 to your computer and use it in GitHub Desktop.
diff -urN /tmp/pan-0.136-original/pan/gui/gui.cc pan/gui/gui.cc
--- /tmp/pan-0.136-original/pan/gui/gui.cc 2012-04-08 23:30:36.000000000 +0800
+++ pan/gui/gui.cc 2012-04-10 12:50:42.000000000 +0800
@@ -2171,8 +2171,8 @@
g_snprintf (str, sizeof(str), "%s: %u/%u", _("Tasks"), running, size);
// build the tooltip
- gulong queued, unused, stopped;
- guint64 KiB_remain;
+ unsigned long queued, unused, stopped;
+ uint64_t KiB_remain;
double KiBps;
int hr, min, sec;
_queue.get_stats (queued, unused, stopped,
@@ -2180,7 +2180,7 @@
hr, min, sec);
g_snprintf (tip, sizeof(tip), _("%lu tasks, %s, %.1f KiBps, ETA %d:%02d:%02d"),
- (running+queued), render_bytes(KiB_remain), KiBps, hr, min, sec);
+ static_cast<gulong>(running+queued), render_bytes(static_cast<guint64>(KiB_remain)), KiBps, hr, min, sec);
// update the gui
gtk_label_set_text (GTK_LABEL(_queue_size_label), str);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment