Skip to content

Commit

Permalink
perf: fix clock cache
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Mar 10, 2024
1 parent 311a0c5 commit 4d1d013
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doom-modeline-segments.el
Original file line number Diff line number Diff line change
Expand Up @@ -3118,7 +3118,8 @@ When the svg library is not availible, return nil."
(cdr
(or (and (equal (truncate (float-time)
(* doom-modeline-time-clock-minute-resolution 60))
doom-modeline--clock-cache))
(car doom-modeline--clock-cache))
doom-modeline--clock-cache)
(and (require 'svg nil t)
(setq doom-modeline--clock-cache
(cons (truncate (float-time)
Expand Down

0 comments on commit 4d1d013

Please sign in to comment.