mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
gio-du: show the correct filename in progress
We were showing argv[1] in the progress output before, which is not always the filename.
This commit is contained in:
parent
2684dec447
commit
348764269d
@ -150,7 +150,7 @@ main (int argc, char **argv)
|
|||||||
if (option_use_async)
|
if (option_use_async)
|
||||||
{
|
{
|
||||||
g_file_measure_disk_usage_async (file, flags, G_PRIORITY_DEFAULT, NULL,
|
g_file_measure_disk_usage_async (file, flags, G_PRIORITY_DEFAULT, NULL,
|
||||||
progress, argv[1], async_ready_func, argv_utf8);
|
progress, argv_utf8, async_ready_func, argv_utf8);
|
||||||
outstanding_asyncs++;
|
outstanding_asyncs++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -160,7 +160,7 @@ main (int argc, char **argv)
|
|||||||
guint64 num_dirs;
|
guint64 num_dirs;
|
||||||
guint64 num_files;
|
guint64 num_files;
|
||||||
|
|
||||||
g_file_measure_disk_usage (file, flags, NULL, progress, argv[1],
|
g_file_measure_disk_usage (file, flags, NULL, progress, argv_utf8,
|
||||||
&disk_usage, &num_dirs, &num_files, &error);
|
&disk_usage, &num_dirs, &num_files, &error);
|
||||||
print_result (argv_utf8, disk_usage, num_dirs, num_files, error, '\n');
|
print_result (argv_utf8, disk_usage, num_dirs, num_files, error, '\n');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user