commit a93cc27b65e745dfe94f37bacb76b3159fe9e766
parent 9b7183b940ebe298b1eb6885c6e45cb10554befa
Author: Chris Down <chris@chrisdown.name>
Date: Wed, 21 Feb 2018 17:23:07 +0000
Add nanosecond resolution to cache file output
Possibly related to #62.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clipmenud b/clipmenud
@@ -190,7 +190,7 @@ while true; do
# Without checking ${last_data[any]}, we often double write since both
# selections get the same content
- cache_file_output="$(date +%s) $first_line"
+ cache_file_output="$(date +%s%N) $first_line"
if [[ ${last_data[any]} != "$data" ]]; then
filename="$cache_dir/$(cksum <<< "$first_line")"
debug "Writing $data to $filename"