Addes writerel command.
[crypto.git] / apps / silcmap / silcmap_client.c
index b97bf77e481a5bf4b2542eb197e59c51fbcc6f0f..7aa6677b41307fa94976ecde6d3289f991263a0f 100644 (file)
@@ -125,6 +125,10 @@ void silc_map_process_data(SilcMap map, SilcMapConnection mapconn)
   if (map->writehtml.writehtml)
     silc_map_writehtml(map, mapconn);
 
+  /* Write uptime reliability data */
+  if (map->writerel.writerel)
+    silc_map_writerel(map, mapconn);
+
   /* If this was last connection, we are done and ready to quit. */
   if (map->conn_num == map->conns_num) {
     SILC_LOG_DEBUG(("All connections processed"));
@@ -147,6 +151,10 @@ void silc_map_process_data(SilcMap map, SilcMapConnection mapconn)
     /* Write the HTML map file(s) */
     silc_map_writemaphtml(map);
 
+    /* Write uptime reliability graph */
+    if (map->writerel.writerel)
+      silc_map_writerelhtml(map);
+
     /* Schedule to stop */
     silc_schedule_task_add(map->client->schedule, 0,
                           silc_map_process_done, map, 0, 1,