Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Removed ghc 7.6 due to compilation error.
Added ghc 8.0, 8.2.
|
|
The Travis CI fails due to the command sh ./travis.sh src returns an
error due to the fact that travis.sh does not exist.
The fix is removing the command from travis.yml.
|
|
|
|
Should fix issue #325
|
|
|
|
|
|
|
|
The URL which exports the real time UV data has changed to an HTTPS
address. Since the HTTP package does not support HTTPS URLs, use
http-conduit to retrieve the XML document.
Unfortunately, the XML documents XML declaration precedes a byte order
mark which the previous XML parser was unable to handle. We're simply
ignoring the BOM in order to get to the UV values.
|
|
Hide the monitor 'Weather' behind a flag named 'with_weather'.
This implies that the dependency on the module 'HTTP' is now optional.
The default for 'with_weather' is True since we do not want to break
backwards compatibility/user experience.
Further moved the effect of the flag with_conduit within the branch of
'with_weather', since that flag only has some effect if 'with_weather'
is true.
|
|
List the module UVMeter within the conditional branch of the flag 'with_uvmeter' instead of the global 'other-modules'.
|
|
|
|
|
|
On Arch Linux, the package providing `iwlib` is a bit hard to find - it
should come from the official `wireless_tools` package [1]. I've updated
the readme to make this more clear.
[1] https://www.archlinux.org/packages/?q=wireless_tools
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
My laptop currently has rx/tx bytes in 10s of gigabytes and it's only
been up for 20 days. Normally it's several times more. At this point,
Float can only tell the difference of 4KB and up:
Prelude> let x = (50 * 2^30 :: Float) in (x + 2000) - x
0.0
Prelude> let x = (50 * 2^30 :: Float) in (x + 3000) - x
4096.0
This commit makes the Net monitor read Word64 which is exactly what the
kernel prints into /proc/net/dev [1] and converts to Float only after
subtracting the two numbers.
[1] https://github.com/torvalds/linux/blob/7a308bb3016f57e5be11a677d15b821536419d36/net/core/net-procfs.c#L82
Still, I think it's time to switch from Float to Double. At half-gigabit
speeds (easily attainable at home while rsyncing over a direct UTP cable
between two post-2010 laptops), Float can only tell the difference of
8 bytes and up (and I'm not even considering takeDigits!). That's
probably okay for a Net monitor in xmobar, but we're so close to the
limit it makes sense to move to Double just in case.
|
|
Otherwise build fails on preprocessor stage as:
Building xmobar-0.24.3...
Preprocessing executable 'xmobar' for xmobar-0.24.3...
XPMFile.hsc:29:21: fatal error: X11/xpm.h: No such file or directory
compilation terminated.
Reported-by: Toralf Förster
Bug: https://bugs.gentoo.org/601262
Signed-off-by: Sergei Trofimovich <siarheit@google.com>
|
|
|
|
|