From e8386773dc09ab57b30698dd54e486ca7ee02b40 Mon Sep 17 00:00:00 2001 From: Leandro Lisboa Penz Date: Wed, 29 Jan 2025 21:40:14 +0000 Subject: [PATCH] Use as a sort of symbol for the program --- README.md | 2 +- src/misc.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e2ea928..2317f23 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![crates.io](https://img.shields.io/crates/v/ogle)](https://crates.io/crates/ogle) [![packagecloud](https://img.shields.io/badge/deb-packagecloud.io-844fec.svg)](https://packagecloud.io/app/lpenz/debian/search?q=ogle) -# ogle +# ogle **ogle** is a program that runs the given command-line periodically, showing the output only when it is different than the last. diff --git a/src/misc.rs b/src/misc.rs index 43059ee..5ced6ba 100644 --- a/src/misc.rs +++ b/src/misc.rs @@ -22,7 +22,7 @@ pub fn term_clear_line(term: &Term) -> Result<()> { } pub fn ofmt_helper(timestamp: &Instant, line: &str) -> String { - format!("=> {} {}", timestamp, line) + format!(" {} {}", timestamp, line) } macro_rules! ofmt {