Skip to content

Commit

Permalink
fix task disk measurement (#3895)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinthomas-z80 authored Jul 31, 2024
1 parent 4b43490 commit ac9f0b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taskvine/src/worker/vine_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ static void kill_all_tasks()
static int enforce_process_limits(struct vine_process *p)
{
/* If the task did not set disk usage, return right away. */
if (p->disk < 1)
if (p->task->resources_requested->disk < 1)
return 1;

vine_process_measure_disk(p, options->max_time_on_measurement);
Expand Down

0 comments on commit ac9f0b5

Please sign in to comment.