This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository enlightenment.

View the commit online.

commit 2c2a6ab6803f813a83ee6953045d5878bdf3f4b3
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Sun Nov 24 20:22:56 2024 +0000

    temperature - handle larger values from sysfs
    
    not actually fixing anything but in theory fixing things if the code
    is re-used for other things
---
 src/modules/temperature/e_mod_tempget.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/modules/temperature/e_mod_tempget.c b/src/modules/temperature/e_mod_tempget.c
index 1fd00fe13..d593bc071 100644
--- a/src/modules/temperature/e_mod_tempget.c
+++ b/src/modules/temperature/e_mod_tempget.c
@@ -45,9 +45,9 @@ typedef struct
    const char *label;
    int enable;
    int fault;
-   int rpm;
-   int min;
-   int max;
+   long long rpm;
+   long long min;
+   long long max;
    int target;
 } Fan;
 
@@ -178,7 +178,7 @@ err:
 
 #define NOVAL -999999999
 
-static int
+static long long
 _file_int_get(const char *path)
 {
    char *str = _file_str_get(path);
@@ -195,11 +195,11 @@ _file_int_get(const char *path)
       free(_s); \
    } \
 } while (0)
-#define GETVAL_INT(_base, _name, _field) do { int _v; char _b[1024 + 512]; \
+#define GETVAL_INT(_base, _name, _field) do { long long _v; char _b[1024 + 512]; \
    snprintf(_b, sizeof(_b), "%s_%s", _base, _name); \
    if ((_v = _file_int_get(_b)) >= 0) _field = _v; \
 } while (0)
-#define GETVAL_DBL(_base, _name, _field, _div) do { int _v; char _b[1024 + 512]; \
+#define GETVAL_DBL(_base, _name, _field, _div) do { long long _v; char _b[1024 + 512]; \
    snprintf(_b, sizeof(_b), "%s_%s", _base, _name); \
    if ((_v = _file_int_get(_b)) >= 0) _field = (double)_v / (_div); \
 } while (0)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to