nicolas / debian.moreutils (public) (License: GPL-2, GPL-2+, Expat, BSD-2-Clause, Public Domain) (since 2018-09-25) (hash sha1)
Debian packaging of joeyh's moreutils
List of commits:
Subject Hash Author Date (UTC)
make -m start at current time 3d31d550ffc75f7eada0d6cb624a98423b54bbd2 Joey Hess 2017-10-31 17:02:48
document -m c5a0deb4fbca8d95a63374e2b2ef1ac0f87520c1 Joey Hess 2017-10-31 16:58:05
else indent style fix 52e35719dc334da747c543f0da8f2fd0e537b2c6 Joey Hess 2017-10-30 16:51:58
ts: Introduce '-m' option to use CLOCK_MONOTONIC 96809417fcceb13c83caa6b16d8174ea209bce27 Ben Leinweber 2017-10-30 15:24:47
Revert "ts: Introduce '-m' option to use CLOCK_MONOTONIC" b6a010d759c53befdc9755760d28b6647d50f8b0 Joey Hess 2017-10-30 16:50:34
ts: Add -m option to use monotonic clock. Thanks, Ben Leinweber 12845e32adcaa18b83cd8f3f01fddf9189c7ebda Joey Hess 2017-10-30 16:49:36
else indent style fix 5b628493242860cdbec41a23e23bb561c96e4b40 Joey Hess 2017-10-30 16:49:12
ts: Introduce '-m' option to use CLOCK_MONOTONIC d4592ac408f2086a3ed305c3fccf9107763e2be4 Ben Leinweber 2017-10-30 15:24:47
releasing package moreutils version 0.61 01d1b22f22fae647cbfd855dc82f8d9548607ab0 Joey Hess 2017-04-19 14:31:30
chronic: Flush output more often to better preserve stdout,err ordering. 53c35a635276bb78f098947755dd072b5b800358 Joey Hess 2016-10-17 15:49:07
releasing package moreutils version 0.60 1173bd9f10d731485f3b63f1c7ff55eb9c58a605 Joey Hess 2016-08-13 13:58:21
Modify Cygwin check to use findstring instead of uname -o 2d427c09cff6e7666e07c301c4b46c6206362a36 Tony Kelman 2016-08-10 03:23:52
changelog e725f4d1607312a8ed3a5690e2926c26d5c48a61 Joey Hess 2016-07-19 01:03:36
include licence text 29f0d5b620d63de94c066d50e4e468b51037c543 Joey Hess 2016-07-19 01:03:25
add dependency e1a2473fff49f7caee1561bff38ee43ba5a97507 Joey Hess 2016-07-19 01:02:15
Merge is_utf8 from https://github.com/julienpalard/is_utf8. 089fa36ad806246278b43df8dadb9a7882d39e54 Julien Palard 2016-07-18 22:48:55
changelog ccf04c19111b1a2ccae7a16bb07a38a528a34a64 Joey Hess 2016-07-15 20:20:10
cygwin support dee9b5042951795cd7abc415f1c4f4becc6363d3 StalkR 2016-07-15 08:48:35
releasing package moreutils version 0.59 f891e8d7aafa336b89d0252e31bf52e1510de6b8 Joey Hess 2016-04-02 19:23:51
style cleanup 411d6d3c6a8912c83cfc8a77747d4e68ed66cb4f Joey Hess 2016-04-02 19:22:55
Commit 3d31d550ffc75f7eada0d6cb624a98423b54bbd2 - make -m start at current time
The mono clock is relative to some arbitrary start time, which led to a
display of a date typically close to the epoch. Fix that by getting the
current time at startup, and applying the delta between that and the
mono time.
Author: Joey Hess
Author date (UTC): 2017-10-31 17:02
Committer name: Joey Hess
Committer date (UTC): 2017-10-31 17:02
Parent(s): c5a0deb4fbca8d95a63374e2b2ef1ac0f87520c1
Signing key: DB12DB0FF05F8F38
Tree: ad554bfc1c1fe67c0e9fd6206bd0219cf6f5ff5c
File Lines added Lines deleted
ts 5 3
File ts changed (mode: 100755) (index 0ff8669..35dc626)
... ... if ($format=~/\%\.[Ss]/ || $mono) {
93 93
94 94 my $lastseconds = 0; my $lastseconds = 0;
95 95 my $lastmicroseconds = 0; my $lastmicroseconds = 0;
96 my $monodelta;
96 97
97 98 if ($mono) { if ($mono) {
98 99 my $raw_time = Time::HiRes::clock_gettime(CLOCK_MONOTONIC); my $raw_time = Time::HiRes::clock_gettime(CLOCK_MONOTONIC);
99 $lastseconds = int($raw_time);
100 $lastmicroseconds = int(1000000 * ($raw_time - $lastseconds));
100 $lastseconds = time;
101 $lastmicroseconds = int(1000000 * ($raw_time - int($raw_time)));
102 $monodelta = time - int($raw_time);
101 103 } }
102 104 elsif ($hires) { elsif ($hires) {
103 105 ($lastseconds, $lastmicroseconds) = Time::HiRes::gettimeofday(); ($lastseconds, $lastmicroseconds) = Time::HiRes::gettimeofday();
 
... ... while (<>) {
116 118 if ($mono) { if ($mono) {
117 119 my $raw_time = my $raw_time =
118 120 Time::HiRes::clock_gettime(CLOCK_MONOTONIC); Time::HiRes::clock_gettime(CLOCK_MONOTONIC);
119 $seconds = int($raw_time);
121 $seconds = $monodelta + int($raw_time);
120 122 $microseconds = int(1000000 * ($raw_time - $seconds)); $microseconds = int(1000000 * ($raw_time - $seconds));
121 123 } }
122 124 else { else {
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/nicolas/debian.moreutils

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/nicolas/debian.moreutils

Clone this repository using git:
git clone git://git.rocketgit.com/user/nicolas/debian.moreutils

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main