File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 33// For the full copyright and license information, please view the LICENSE
44// file that was distributed with this source code.
55
6- // spell-checker:ignore getloadavg behaviour loadavg uptime upsecs updays upmins uphours boottime nusers utmpxname gettime clockid formated
6+ // spell-checker:ignore getloadavg behaviour loadavg uptime upsecs updays upmins uphours boottime nusers utmpxname gettime clockid
77
88use chrono:: { Local , TimeZone , Utc } ;
99use clap:: ArgMatches ;
@@ -296,6 +296,6 @@ fn print_time() {
296296}
297297
298298fn print_uptime ( boot_time : Option < time_t > ) -> UResult < ( ) > {
299- print ! ( "up {}, " , get_formated_uptime ( boot_time) ?) ;
299+ print ! ( "up {}, " , get_formatted_uptime ( boot_time) ?) ;
300300 Ok ( ( ) )
301301}
Original file line number Diff line number Diff line change 33// For the full copyright and license information, please view the LICENSE
44// file that was distributed with this source code.
55
6- // spell-checker:ignore gettime BOOTTIME clockid boottime formated nusers loadavg getloadavg
6+ // spell-checker:ignore gettime BOOTTIME clockid boottime nusers loadavg getloadavg
77
88//! Provides functions to get system uptime, number of users and load average.
99
@@ -165,7 +165,7 @@ pub fn get_uptime(_boot_time: Option<time_t>) -> UResult<i64> {
165165///
166166/// Returns a UResult with the uptime in a human-readable format(e.g. "1 day, 3:45") if successful, otherwise an UptimeError.
167167#[ inline]
168- pub fn get_formated_uptime ( boot_time : Option < time_t > ) -> UResult < String > {
168+ pub fn get_formatted_uptime ( boot_time : Option < time_t > ) -> UResult < String > {
169169 let up_secs = get_uptime ( boot_time) ?;
170170
171171 if up_secs < 0 {
You can’t perform that action at this time.
0 commit comments