diff --git a/src/detection/displayserver/linux/xcb.c b/src/detection/displayserver/linux/xcb.c index 89fc1ae00..447c76bb2 100644 --- a/src/detection/displayserver/linux/xcb.c +++ b/src/detection/displayserver/linux/xcb.c @@ -175,7 +175,7 @@ typedef struct XcbRandrData static bool xcbRandrHandleModeInfo(XcbRandrData* data, xcb_randr_mode_info_t* modeInfo) { - double refreshRate = modeInfo->dot_clock / (double) (modeInfo->htotal * modeInfo->vtotal); + double refreshRate = (double) modeInfo->dot_clock / (double) (modeInfo->htotal * modeInfo->vtotal); return ffdsAppendDisplay( data->result, diff --git a/src/detection/displayserver/linux/xlib.c b/src/detection/displayserver/linux/xlib.c index f1dcbeabc..13a08b2a5 100644 --- a/src/detection/displayserver/linux/xlib.c +++ b/src/detection/displayserver/linux/xlib.c @@ -134,7 +134,7 @@ typedef struct XrandrData static bool xrandrHandleModeInfo(XrandrData* data, XRRModeInfo* modeInfo) { - double refreshRate = modeInfo->dotClock / (double) (modeInfo->hTotal * modeInfo->vTotal); + double refreshRate = (double) modeInfo->dotClock / (double) (modeInfo->hTotal * modeInfo->vTotal); return ffdsAppendDisplay( data->result,