mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 08:15:40 +02:00
parent
85ae4cca37
commit
db53cf9245
4 changed files with 7 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
#include <poll.h>
|
||||
|
@ -46,7 +47,7 @@ content(struct module *mod)
|
|||
|
||||
const long current = m->current_brightness;
|
||||
const long max = m->max_brightness;
|
||||
const long percent = max > 0 ? 100 * current / max : 0;
|
||||
const long percent = max > 0 ? round(100. * current / max) : 0;
|
||||
|
||||
struct tag_set tags = {
|
||||
.tags = (struct tag *[]){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue