[dev] [slstatus] temperature module acts wierd on OpenBSD

From: messw1thdbest <messw1thdbest_AT_protonmail.ch>
Date: Tue, 16 Jun 2020 17:33:28 +0000

Hi Suckless

I think there is a problem with the temperature module,
that is, on OpenBSD it only prints one digit,
which by the way doesn't even change (stuck at 5).

By making a small change, it now works properly.
(I also removed stdio.h which looks unnecessary)

22d21
< #include <stdio.h>
48c47
< return bprintf("%d", (temp.value - 273150000) / 1E6);
---
>               return bprintf("%d", (temp.value - 273150000) / 1000000);
Thank's for your work!
Received on Tue Jun 16 2020 - 19:33:28 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 16 2020 - 19:36:08 CEST