Displaying 2 results from an estimated 2 matches for "info_load".
Did you mean:
info_dad
2019 Sep 28
0
[PATCH nbdkit v2 3/4] info: Add mode for sending back server time.
...quot;
+#include "tvdiff.h"
+
/* The mode. */
enum mode {
MODE_EXPORTNAME,
MODE_BASE64EXPORTNAME,
MODE_ADDRESS,
+ MODE_TIME,
+ MODE_UPTIME,
+ MODE_CONNTIME,
};
static enum mode mode = MODE_EXPORTNAME;
+/* Plugin load time. */
+static struct timeval load_t;
+
+static void
+info_load (void)
+{
+ gettimeofday (&load_t, NULL);
+}
+
static int
info_config (const char *key, const char *value)
{
@@ -73,9 +89,14 @@ info_config (const char *key, const char *value)
return -1;
#endif
}
- else if (strcasecmp (value, "address") == 0) {
+ else if (strca...
2019 Sep 28
9
[PATCH nbdkit v2 0/4] info: Add mode for sending back server time.
v1 was:
https://www.redhat.com/archives/libguestfs/2019-September/thread.html#00361
v2:
- Adds a patch to rename the reflection plugin to the info plugin.
- Adds tests.
Rich.