Skip to content

Commit

Permalink
Inline lsf_driver_shell_init
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el committed Sep 19, 2023
1 parent c39fe28 commit 688451e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/clib/lib/job_queue/lsf_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -918,19 +918,15 @@ void lsf_driver_set_bjobs_refresh_interval(lsf_driver_type *driver,
driver->bjobs_refresh_interval = refresh_interval;
}

static void lsf_driver_shell_init(lsf_driver_type *lsf_driver) {
lsf_driver->last_bjobs_update = time(nullptr);
lsf_driver->bjobs_cache = hash_alloc();
lsf_driver->my_jobs = hash_alloc();
}

bool lsf_driver_has_project_code(const lsf_driver_type *driver) {
return (driver->project_code);
}

void *lsf_driver_alloc() {
lsf_driver_type *lsf_driver = new lsf_driver_type();
lsf_driver_shell_init(lsf_driver);
lsf_driver->last_bjobs_update = time(nullptr);
lsf_driver->bjobs_cache = hash_alloc();
lsf_driver->my_jobs = hash_alloc();

lsf_driver_set_option(lsf_driver, LSF_SERVER, NULL);
lsf_driver_set_option(lsf_driver, LSF_RSH_CMD, DEFAULT_RSH_CMD);
Expand Down

0 comments on commit 688451e

Please sign in to comment.