~azzamsa/bilal.rs

3194a1567c5f6ec531243eace6bc2e24026fe3f3 — azzamsa 7 months ago d391811
fix: wrong critical state

The app only check for the remaining time.
So it will says `critical` even the hour > 0.
1 files changed, 1 insertions(+), 1 deletions(-)

M src/output.rs
M src/output.rs => src/output.rs +1 -1
@@ 63,7 63,7 @@ impl Printer {
        // default
        let mut prayer_fmt = format!("{} {}", prayer.name(), remaining_fmt);
        let state = {
            if minute < 30 {
            if hour == 0 && minute < 30 {
                "Critical"
            } else {
                "Info"