Skip to content

Commit

Permalink
Update vboxwrapper.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
computezrmle authored Oct 29, 2024
1 parent eb56ba3 commit d08ad6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/vboxwrapper/vboxwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1079,8 +1079,6 @@ int main(int argc, char** argv) {

if (heartbeat_stat.st_mtime > last_heartbeat_mod_time) {
// Heartbeat successful
last_heartbeat_mod_time = heartbeat_stat.st_mtime;
last_heartbeat_elapsed_time = elapsed_time;
backtoback_heartbeat_failure = 1;
} else {
// Timestamps are not always monotonuous
Expand Down Expand Up @@ -1111,6 +1109,8 @@ int main(int argc, char** argv) {
boinc_finish(return_code);
}

last_heartbeat_mod_time = heartbeat_stat.st_mtime;
last_heartbeat_elapsed_time = elapsed_time;
initial_heartbeat_check = false;
}
}
Expand Down

0 comments on commit d08ad6a

Please sign in to comment.