summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar/Plugins/Monitors/Top.hs
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2025-03-31 17:02:58 +0100
committerjao <jao@gnu.org>2025-03-31 17:02:58 +0100
commit98857472d93e6c6b4c9d501ae5c7172874c1ed82 (patch)
tree3d326e97b1e790fbd9c417617241e4cd3f45d31d /src/Xmobar/Plugins/Monitors/Top.hs
parentc6976e852e4c9a8cd590c1c87eb6d7d9c6ce23c0 (diff)
downloadxmobar-98857472d93e6c6b4c9d501ae5c7172874c1ed82.tar.gz
xmobar-98857472d93e6c6b4c9d501ae5c7172874c1ed82.tar.bz2
hlinting
Diffstat (limited to 'src/Xmobar/Plugins/Monitors/Top.hs')
-rw-r--r--src/Xmobar/Plugins/Monitors/Top.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Xmobar/Plugins/Monitors/Top.hs b/src/Xmobar/Plugins/Monitors/Top.hs
index 3bfe6fd..b2e573b 100644
--- a/src/Xmobar/Plugins/Monitors/Top.hs
+++ b/src/Xmobar/Plugins/Monitors/Top.hs
@@ -3,7 +3,7 @@
-----------------------------------------------------------------------------
-- |
-- Module : Plugins.Monitors.Top
--- Copyright : (c) 2010, 2011, 2012, 2013, 2014, 2018, 2022 Jose A Ortega Ruiz
+-- Copyright : (c) 2010-2014, 2018, 2022, 2025 Jose A Ortega Ruiz
-- License : BSD-style (see LICENSE)
--
-- Maintainer : Jose A Ortega Ruiz <jao@gnu.org>
@@ -20,7 +20,7 @@ import Xmobar.Plugins.Monitors.Common
import Data.IORef (newIORef, readIORef, writeIORef)
import Data.List (sortBy)
-import Data.Ord (comparing)
+import Data.Ord (comparing, Down (..))
import Data.Time.Clock (getCurrentTime, diffUTCTime)
import Xmobar.Plugins.Monitors.Top.Common (
@@ -66,7 +66,7 @@ showInfo nm sms mms = do
sortTop :: [(String, Float)] -> [(String, Float)]
-sortTop = sortBy (flip (comparing snd))
+sortTop = sortBy (comparing (Down . snd))
showMemInfo :: Float -> MemInfo -> Monitor [String]
showMemInfo scale (nm, rss) =