Sorry, I messed up the formatting

22d21
<       #include <stdio.h>
48c47
<               return bprintf("%d", (temp.value - 273150000) / 1E6);
---
>               return bprintf("%d", (temp.value - 273150000) / 1000000);


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, June 16, 2020 5:33 PM, messw1thdbest <messw1thdb...@protonmail.ch> 
wrote:

> 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!



Reply via email to