From 0b63035952c622124afb6d9aee2f3ede25d66979 Mon Sep 17 00:00:00 2001 From: Albert Chu Date: Fri, 1 Mar 2024 13:44:00 -0800 Subject: [PATCH] redfishpower: reduce polling interval in test mode Problem: When in test mode, the status polling interval is still set to 1 second. This can slow down tests. Reduce the status polling interval to 1 millisecond when in test mode. --- src/redfishpower/redfishpower.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/redfishpower/redfishpower.c b/src/redfishpower/redfishpower.c index 12f24d77..c868edea 100644 --- a/src/redfishpower/redfishpower.c +++ b/src/redfishpower/redfishpower.c @@ -1161,6 +1161,11 @@ int main(int argc, char *argv[]) free(hostname); } hostlist_iterator_destroy(itr); + + /* under test mode we can make the polling interval a lot smaller + * lets put it to a millisecond. + */ + status_polling_interval = 1000; } shell(mh);