mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-15 03:26:18 +00:00
pinky: make ci happy
This commit is contained in:
parent
fe952d90d8
commit
048daee8b9
2 changed files with 10 additions and 3 deletions
|
@ -256,7 +256,7 @@ impl UtmpUtils for utmpx::c_utmp {
|
||||||
|
|
||||||
fn idle_string(when: i64) -> String {
|
fn idle_string(when: i64) -> String {
|
||||||
thread_local! {
|
thread_local! {
|
||||||
static NOW: time::Tm = time::now();
|
static NOW: time::Tm = time::now()
|
||||||
}
|
}
|
||||||
NOW.with(|n| {
|
NOW.with(|n| {
|
||||||
let duration = n.to_timespec().sec - when;
|
let duration = n.to_timespec().sec - when;
|
||||||
|
@ -293,7 +293,7 @@ impl Pinky {
|
||||||
let last_change;
|
let last_change;
|
||||||
match pts_path.metadata() {
|
match pts_path.metadata() {
|
||||||
Ok(meta) => {
|
Ok(meta) => {
|
||||||
mesg = if meta.mode() & S_IWGRP != 0 {
|
mesg = if meta.mode() & (S_IWGRP as u32) != 0 {
|
||||||
' '
|
' '
|
||||||
} else {
|
} else {
|
||||||
'*'
|
'*'
|
||||||
|
@ -366,7 +366,7 @@ impl Pinky {
|
||||||
self.print_heading();
|
self.print_heading();
|
||||||
} else {
|
} else {
|
||||||
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
// FIXME: WIERD!!! If the following line is removed,
|
// FIXME: WEIRD!!! If the following line is removed,
|
||||||
// getpwnam() will return NULL.
|
// getpwnam() will return NULL.
|
||||||
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
// @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
print!("");
|
print!("");
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
// This file is part of the uutils coreutils package.
|
||||||
|
//
|
||||||
|
// (c) Jian Zeng <anonymousknight96@gmail.com>
|
||||||
|
//
|
||||||
|
// For the full copyright and license information, please view the LICENSE
|
||||||
|
// file that was distributed with this source code.
|
||||||
|
//
|
||||||
extern crate uucore;
|
extern crate uucore;
|
||||||
use uucore::utmpx::c_utmp;
|
use uucore::utmpx::c_utmp;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue