Ticket #1436: alwaystimestamp.patch
File alwaystimestamp.patch, 2.4 KB (added by , 4 years ago) |
---|
-
ataprint.cpp
# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /home/hal/NetBeansProjects/smartmontools-code/smartmontools # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process.
802 802 time_t now = time(0); 803 803 char timedatetz[DATEANDEPOCHLEN]; dateandtimezoneepoch(timedatetz, now); 804 804 jout("Local Time is: %s\n", timedatetz); 805 jglb["local_time"]["time_t"] = now;806 jglb["local_time"]["asctime"] = timedatetz;807 805 808 806 // Print warning message, if there is one 809 807 if (dbentry && *dbentry->warningmsg) -
nvmeprint.cpp
202 202 } 203 203 204 204 time_t now = time(0); 205 char td[DATEANDEPOCHLEN]; dateandtimezoneepoch(td, now); 206 jout("Local Time is: %s\n", td); 207 jglb["local_time"]["time_t"] = now; 208 jglb["local_time"]["asctime"] = td; 205 char timedatetz[DATEANDEPOCHLEN]; dateandtimezoneepoch(timedatetz, now); 206 jout("Local Time is: %s\n", timedatetz); 209 207 } 210 208 211 209 // Format scaled power value. -
scsiprint.cpp
2135 2135 time_t now = time(0); 2136 2136 char timedatetz[DATEANDEPOCHLEN]; dateandtimezoneepoch(timedatetz, now); 2137 2137 jout("Local Time is: %s\n", timedatetz); 2138 jglb["local_time"]["time_t"] = now;2139 jglb["local_time"]["asctime"] = timedatetz;2140 2138 2141 2139 // See if unit accepts SCSI commands from us 2142 2140 if ((err = scsiTestUnitReady(device))) { -
smartctl.cpp
1653 1653 if (jglb.has_uint128_output()) 1654 1654 jglb["smartctl"]["uint128_precision_bits"] = uint128_to_str_precision_bits(); 1655 1655 jglb["smartctl"]["exit_status"] = status; 1656 // print current time and date and timezone 1657 time_t now = time(0); 1658 char timedatetz[DATEANDEPOCHLEN]; dateandtimezoneepoch(timedatetz, now); 1659 jglb["local_time"]["time_t"] = now; 1660 jglb["local_time"]["asctime"] = timedatetz; 1656 1661 jglb.print(stdout, print_as_json_options); 1657 1662 } 1658 1663 catch (const std::bad_alloc & /*ex*/) {