Commit b9443cfd authored by Ricardo J. Mendez's avatar Ricardo J. Mendez

Expanded accumulate-site-times docstring

parent 03c6834b
......@@ -4,7 +4,10 @@
(defn accumulate-site-times
"Accumulates the total time for a site from a hashmap of URL times"
"Accumulates the total time for a site from a hashmap of URL times.
Returns a hashmap with the URL ID as the key, and the :time, :icon and
:host string on its value."
[url-times]
(->>
(group-by #(hostname (:url %)) (vals url-times))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment