X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f3b7e5f4b4d7c87ee3e8827313ec966ea8fc8387..505d827ccafbb31eb15cfbd72bdc6079e50525e2:/examples/c/io-file-system/io-file-system.c diff --git a/examples/c/io-file-system/io-file-system.c b/examples/c/io-file-system/io-file-system.c index c266708d64..efa9fe4992 100644 --- a/examples/c/io-file-system/io-file-system.c +++ b/examples/c/io-file-system/io-file-system.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2008-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2008-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -24,7 +24,7 @@ static void show_info(unsigned int disk_count, const sg_disk_t* disks) for (unsigned int i = 0; i < disk_count; i++) { const_sg_disk_t d = disks[i]; // Retrieve disk's information - XBT_INFO(" %s (%s) Used: %llu; Free: %llu; Total: %llu.", sg_disk_name(d), sg_disk_get_mount_point(d), + XBT_INFO(" %s (%s) Used: %llu; Free: %llu; Total: %llu.", sg_disk_get_name(d), sg_disk_get_mount_point(d), sg_disk_get_size_used(d), sg_disk_get_size_free(d), sg_disk_get_size(d)); } } @@ -33,7 +33,7 @@ static void host(int argc, char* argv[]) { unsigned int disk_count; sg_disk_t* disks; - sg_host_disks(sg_host_self(), &disk_count, &disks); + sg_host_get_disks(sg_host_self(), &disk_count, &disks); show_info(disk_count, disks);